From d05dc1f519493dd7b8818b2368a051f9022c6677 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 1 Jul 2025 14:11:45 +0300 Subject: [PATCH] ci: migrate the remaining jobs from the deprecated windows-2019 image to windows-2022 (#24825) --- .github/workflows/native_backend_ci.yml | 14 +++++++------- .github/workflows/windows_ci.yml | 4 ++-- vlib/v/gen/native/tests/native_test.v | 3 ++- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/native_backend_ci.yml b/.github/workflows/native_backend_ci.yml index a32a5d2498..752ae3b886 100644 --- a/.github/workflows/native_backend_ci.yml +++ b/.github/workflows/native_backend_ci.yml @@ -51,6 +51,8 @@ concurrency: jobs: native-backend-ubuntu: runs-on: ubuntu-24.04 + env: + VJOBS: 1 steps: - uses: actions/checkout@v4 - name: Build V @@ -60,12 +62,12 @@ jobs: - name: Rebuild V with -g, for better stacktraces on compiler panics run: v -g self - name: Run the native backend tests serially with more details - run: | - v vlib/v/gen/native/macho_test.v - v vlib/v/gen/native/tests/native_test.v + run: v test vlib/v/gen/native/ native-backend-windows: - runs-on: windows-2019 + runs-on: windows-2022 + env: + VJOBS: 1 steps: - uses: actions/checkout@v4 - name: Build V (Windows) @@ -73,6 +75,4 @@ jobs: - name: Rebuild V with -g, for better stacktraces on compiler panics run: v -g self - name: Run the native backend tests serially with more details - run: | - v vlib/v/gen/native/macho_test.v - v vlib/v/gen/native/tests/native_test.v + run: v test vlib/v/gen/native/ diff --git a/.github/workflows/windows_ci.yml b/.github/workflows/windows_ci.yml index 4d7220d6f6..1ec25faeae 100644 --- a/.github/workflows/windows_ci.yml +++ b/.github/workflows/windows_ci.yml @@ -92,7 +92,7 @@ jobs: run: v -showcc -prod cmd/tools/vup.v msvc-windows: - runs-on: windows-2019 + runs-on: windows-2022 timeout-minutes: 60 env: VFLAGS: -cc msvc @@ -138,7 +138,7 @@ jobs: run: v -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v tcc-windows: - runs-on: windows-2019 + runs-on: windows-2022 timeout-minutes: 60 env: VFLAGS: -cc tcc -no-retry-compilation diff --git a/vlib/v/gen/native/tests/native_test.v b/vlib/v/gen/native/tests/native_test.v index 485d53bae4..b3780a2856 100644 --- a/vlib/v/gen/native/tests/native_test.v +++ b/vlib/v/gen/native/tests/native_test.v @@ -1,4 +1,5 @@ -// vtest build: (amd64 || arm64) && !self_sandboxed_packaging? && !gcc-windows +// vtest build: (amd64 || arm64) && !self_sandboxed_packaging? && !gcc-windows && !native-backend-windows && !tcc-windows && !msvc-windows +// NOTE: native-backend-windows passed with the windows-2019 runner, but fails with windows-2022. TODO: fix @[has_globals] module main