ci: migrate from windows-2019 runner to windows-2025 runner in most jobs (github deprecated the 2019 runner) (#24672)

This commit is contained in:
Delyan Angelov 2025-06-10 13:56:56 +03:00 committed by GitHub
parent 0c495d07d7
commit f2506368ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 23 additions and 18 deletions

View file

@ -100,7 +100,7 @@ jobs:
ls -lart examples/2048/2048.exe ls -lart examples/2048/2048.exe
cross-windows: cross-windows:
runs-on: windows-2019 runs-on: windows-2025
timeout-minutes: 25 timeout-minutes: 25
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

View file

@ -4,7 +4,7 @@ on: [workflow_dispatch]
jobs: jobs:
debug-msvc: debug-msvc:
runs-on: windows-2019 runs-on: windows-2025
timeout-minutes: 121 timeout-minutes: 121
env: env:
VFLAGS: -cc msvc VFLAGS: -cc msvc

View file

@ -45,25 +45,17 @@ on:
- '.github/workflows/native_backend_ci.yml' - '.github/workflows/native_backend_ci.yml'
concurrency: concurrency:
group: native_backend-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }} group: native_backend-${{ github.workflow }}-${{ github.ref}}
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
native-backend: native-backend-ubuntu:
strategy: runs-on: ubuntu-24.04
matrix:
os: [ubuntu-24.04, windows-2019]
runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build V - name: Build V
if: runner.os != 'Windows' run: make && ./v symlink
run: make -j4 && ./v symlink
- name: Build V (Windows)
if: runner.os == 'Windows'
run: ./make.bat && ./v symlink
- name: Install linker - name: Install linker
if: runner.os == 'Linux'
run: v retry -- sudo apt -qq install binutils run: v retry -- sudo apt -qq install binutils
- name: Rebuild V with -g, for better stacktraces on compiler panics - name: Rebuild V with -g, for better stacktraces on compiler panics
run: v -g self run: v -g self
@ -71,3 +63,16 @@ jobs:
run: | run: |
v vlib/v/gen/native/macho_test.v v vlib/v/gen/native/macho_test.v
v vlib/v/gen/native/tests/native_test.v v vlib/v/gen/native/tests/native_test.v
native-backend-windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Build V (Windows)
run: ./make.bat && ./v symlink
- 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

View file

@ -165,7 +165,7 @@ jobs:
run: ./v -silent build-examples run: ./v -silent build-examples
sanitize-address-msvc: sanitize-address-msvc:
runs-on: windows-2019 runs-on: windows-2025
timeout-minutes: 30 timeout-minutes: 30
env: env:
VFLAGS: -cc msvc VFLAGS: -cc msvc

View file

@ -58,7 +58,7 @@ jobs:
v run hi.v v run hi.v
symlink-windows: symlink-windows:
runs-on: windows-2019 runs-on: windows-2025
strategy: strategy:
matrix: matrix:
flags: ['', '-githubci'] flags: ['', '-githubci']

View file

@ -54,7 +54,7 @@ jobs:
run: TZ=Europe/Paris ./v test vlib/time/ run: TZ=Europe/Paris ./v test vlib/time/
time-windows: time-windows:
runs-on: windows-2019 runs-on: windows-2025
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build V - name: Build V

View file

@ -82,7 +82,7 @@ jobs:
run: ./v -silent -W -cstrict test-self cmd run: ./v -silent -W -cstrict test-self cmd
tools-windows: tools-windows:
runs-on: windows-2019 runs-on: windows-2025
strategy: strategy:
matrix: matrix:
cc: [tcc, gcc, msvc] cc: [tcc, gcc, msvc]