Skip to content

Commit 55f482b

Browse files
authored
ci: update linux image runners from ubuntu-20.04 to ubuntu-24.04 (#23706)
1 parent 7b97709 commit 55f482b

46 files changed

Lines changed: 446 additions & 196 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/bootstrapping_ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ on:
2424
- '!**/bootstrapping_ci.yml'
2525

2626
concurrency:
27-
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
27+
group: bootstrapping-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
2828
cancel-in-progress: true
2929

3030
jobs:

‎.github/workflows/c2v_ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
- '!cmd/tools/builders/**.v'
2424

2525
concurrency:
26-
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
26+
group: c2v-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
2727
cancel-in-progress: true
2828

2929
jobs:
@@ -71,7 +71,7 @@ jobs:
7171
WAD_FILE=~/DOOM1.WAD ~/code/doom/build_whole_project.sh
7272
7373
test-regression:
74-
runs-on: ubuntu-20.04
74+
runs-on: ubuntu-24.04
7575
timeout-minutes: 20
7676
env:
7777
VFLAGS: -cc tcc

‎.github/workflows/cross_ci.yml‎

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
- '!cmd/tools/builders/**.v'
1818

1919
concurrency:
20-
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
20+
group: cross-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
2121
cancel-in-progress: true
2222

2323
jobs:
@@ -52,7 +52,7 @@ jobs:
5252
./v -os windows examples/2048/2048.v
5353
5454
linux-cross:
55-
runs-on: ubuntu-20.04
55+
runs-on: ubuntu-24.04
5656
timeout-minutes: 25
5757
env:
5858
VFLAGS: -cc tcc -no-retry-compilation
@@ -65,14 +65,12 @@ jobs:
6565

6666
- name: Install dependencies
6767
run: |
68-
## sudo dpkg --add-architecture i386
69-
./v retry -- sudo apt update
70-
./v retry -- sudo apt install --quiet -y libssl-dev sqlite3 libsqlite3-dev
71-
./v retry -- sudo apt install --quiet -y mingw-w64 wine-stable winetricks
72-
## ./v retry -- sudo apt install --quiet -y wine32
68+
./v retry -- sudo apt install --quiet -y mingw-w64 wine wine64 winetricks libssl-dev sqlite3 libsqlite3-dev
7369
74-
- name: Turn off the wine crash dialog
75-
run: winetricks nocrashdialog
70+
- name: Show diagnostics for wine
71+
run: |
72+
which wine
73+
ls -la $(realpath $(which wine))
7674
7775
- name: v.c can be compiled and run with -os cross
7876
run: |
@@ -86,13 +84,13 @@ jobs:
8684
./v -cc msvc -os windows -o /tmp/v_win.c cmd/v
8785
x86_64-w64-mingw32-gcc /tmp/v_win.c -std=c99 -w -municode -o v_from_vc.exe -lws2_32
8886
ls -lart v_from_vc.exe
89-
wine64 ./v_from_vc.exe version
87+
wine ./v_from_vc.exe version
9088
9189
- name: hello_world.v can be cross compiled to hello_world.exe
9290
run: |
9391
./v -os windows examples/hello_world.v
9492
ls -lart examples/hello_world.exe
95-
wine64 examples/hello_world.exe
93+
wine examples/hello_world.exe
9694
9795
- name: 2048.v can be cross compiled to 2048.exe
9896
run: |

‎.github/workflows/docker_ci.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ on:
1717
- '!cmd/tools/builders/**.v'
1818

1919
concurrency:
20-
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
20+
group: docker-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
2121
cancel-in-progress: true
2222

2323
env:
2424
V_CI_MUSL: 1
2525

2626
jobs:
2727
docker-alpine-musl-gcc:
28-
runs-on: ubuntu-20.04
28+
runs-on: ubuntu-24.04
2929
timeout-minutes: 241
3030
container:
3131
image: thevlang/vlang:alpine-build
@@ -54,7 +54,7 @@ jobs:
5454
run: VTEST_JUST_ESSENTIAL=1 ./v test-self
5555

5656
docker-ubuntu-musl:
57-
runs-on: ubuntu-20.04
57+
runs-on: ubuntu-24.04
5858
timeout-minutes: 121
5959
container:
6060
image: thevlang/vlang:ubuntu-build

‎.github/workflows/docs_ci.yml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,26 @@ on:
1717
- 'cmd/tools/vrepl.v'
1818

1919
concurrency:
20-
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
20+
group: docs-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
2121
cancel-in-progress: true
2222

2323
jobs:
2424
check-markdown:
25-
runs-on: ubuntu-20.04
26-
timeout-minutes: 5
25+
runs-on: ubuntu-24.04
26+
timeout-minutes: 10
2727
steps:
2828
- uses: actions/checkout@v4
2929
- name: Build V
3030
run: make
31+
- name: Install dependencies (some examples show how to use sqlite and the x11 clipboard)
32+
run: ./v retry -- sudo apt install --quiet -y libx11-dev libssl-dev sqlite3 libsqlite3-dev
3133
- name: Check markdown line length & code examples
3234
run: ./v check-md -hide-warnings .
3335
## NB: -hide-warnings is used here, so that the output is less noisy,
3436
## thus real errors are easier to spot.
3537

3638
report-missing-fn-doc:
37-
runs-on: ubuntu-20.04
39+
runs-on: ubuntu-24.04
3840
timeout-minutes: 5
3941
env:
4042
MOPTIONS: --diff --deprecated --relative-paths --exclude /vlib/v/ --exclude /builtin/linux_bare/ --exclude /testdata/ --exclude /tests/

‎.github/workflows/gen_vc_ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ on:
2424
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2525
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2626
concurrency:
27-
group: ${{ github.workflow }}-${{ github.ref }}
27+
group: gen_vc-${{ github.workflow }}-${{ github.ref }}
2828
cancel-in-progress: ${{ !contains(github.ref, 'master')}}
2929

3030
jobs:

‎.github/workflows/gg_regressions_ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ on:
1717
- '!**.md'
1818

1919
concurrency:
20-
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
20+
group: gg-regressions-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
2121
cancel-in-progress: true
2222

2323
jobs:
2424
gg-regressions:
25-
runs-on: ubuntu-20.04
25+
runs-on: ubuntu-24.04
2626
timeout-minutes: 20
2727
env:
2828
VFLAGS: -cc tcc

‎.github/workflows/linux_ci.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ on:
1818
- '!cmd/tools/builders/**.v'
1919

2020
concurrency:
21-
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
21+
group: linux-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
2222
cancel-in-progress: true
2323

2424
jobs:
2525
tcc:
26-
runs-on: ubuntu-20.04
26+
runs-on: ubuntu-24.04
2727
timeout-minutes: 121
2828
env:
2929
VFLAGS: -cc tcc -no-retry-compilation
@@ -81,7 +81,7 @@ jobs:
8181
run: v run ci/linux_ci.vsh test_leak_detector_not_active_tcc
8282

8383
gcc:
84-
runs-on: ubuntu-20.04
84+
runs-on: ubuntu-24.04
8585
timeout-minutes: 121
8686
steps:
8787
- uses: actions/checkout@v4
@@ -135,7 +135,7 @@ jobs:
135135
run: v run ci/linux_ci.vsh test_vlib_skip_unused_gcc
136136

137137
clang:
138-
runs-on: ubuntu-20.04
138+
runs-on: ubuntu-24.04
139139
timeout-minutes: 121
140140
env:
141141
VFLAGS: -cc clang

‎.github/workflows/macos_ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
- '!cmd/tools/builders/**.v'
1818

1919
concurrency:
20-
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
20+
group: macos-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
2121
cancel-in-progress: true
2222

2323
jobs:

‎.github/workflows/module_docs_ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ on:
1717
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1818
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
1919
concurrency:
20-
group: ${{ github.workflow }}-${{ github.ref }}
20+
group: module_docs-${{ github.workflow }}-${{ github.ref }}
2121
cancel-in-progress: ${{ !contains(github.ref, 'master')}}
2222

2323
jobs:
2424
build-module-docs:
25-
runs-on: ubuntu-20.04
25+
runs-on: ubuntu-24.04
2626
steps:
2727
- uses: actions/checkout@v4
2828
- name: Build V

0 commit comments

Comments
 (0)