Skip to content

Commit 1939f92

Browse files
authored
ci: bump GitHub action runner (#2417)
* ci: bump GitHub action runner * try Ubuntu 24.04 * ci: still use Ubuntu 20.04 for cross test
1 parent f1b1ded commit 1939f92

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/ci.yml

+12-9
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
run: sudo rm -rf $CARGO_HOME/registry/index
4545

4646
macos-aarch64:
47-
runs-on: macos-14
47+
runs-on: macos-latest
4848
env:
4949
TARGET: aarch64-apple-darwin
5050
steps:
@@ -73,7 +73,10 @@ jobs:
7373
# Use cross for QEMU-based testing
7474
# cross needs to execute Docker, GitHub Action already has it installed
7575
cross:
76-
runs-on: ubuntu-20.04
76+
# Still use 20.04 for this CI step as test `test_prctl::test_set_vma_anon_name`
77+
# would fail on 22.04 and 24.04 (at least for now)
78+
# https://github.com/nix-rust/nix/issues/2418
79+
runs-on: ubuntu-20.04
7780
needs: [rustfmt, minver, macos, linux_native_builds, rust_stable]
7881
strategy:
7982
fail-fast: false
@@ -129,7 +132,7 @@ jobs:
129132
# Tasks for Linux native builds
130133
# Only test x86_64 targets on GitHub Action, leave aarch64 one in Cirrus CI.
131134
linux_native_builds:
132-
runs-on: ubuntu-20.04
135+
runs-on: ubuntu-latest
133136
strategy:
134137
fail-fast: false
135138
matrix:
@@ -165,7 +168,7 @@ jobs:
165168
run: sudo rm -rf $CARGO_HOME/registry/index;
166169

167170
rust_stable:
168-
runs-on: ubuntu-20.04
171+
runs-on: ubuntu-latest
169172
env:
170173
TARGET: x86_64-unknown-linux-gnu
171174
steps:
@@ -194,7 +197,7 @@ jobs:
194197

195198
# Tasks for cross-compiling, but no testing
196199
cross_compiling:
197-
runs-on: ubuntu-20.04
200+
runs-on: ubuntu-latest
198201
needs: [rustfmt, minver, macos, linux_native_builds, rust_stable]
199202
env:
200203
BUILD: check
@@ -249,7 +252,7 @@ jobs:
249252

250253

251254
redox:
252-
runs-on: ubuntu-20.04
255+
runs-on: ubuntu-latest
253256
needs: [rustfmt, minver, macos, linux_native_builds, rust_stable]
254257
env:
255258
TARGET: x86_64-unknown-redox
@@ -282,7 +285,7 @@ jobs:
282285

283286
# Rust Tier 3 targets can't use Rustup
284287
tier3:
285-
runs-on: ubuntu-20.04
288+
runs-on: ubuntu-latest
286289
env:
287290
BUILD: check
288291
ZFLAGS: -Zbuild-std
@@ -328,7 +331,7 @@ jobs:
328331
# "cargo test" doesn't work because some of our dev-dependencies, like
329332
# rand, can't build with their own minimal dependencies.
330333
minver:
331-
runs-on: ubuntu-20.04
334+
runs-on: ubuntu-latest
332335
env:
333336
TARGET: x86_64-unknown-linux-gnu
334337
steps:
@@ -349,7 +352,7 @@ jobs:
349352

350353
# Tasks that checks if the code is formatted right using `cargo fmt` tool
351354
rustfmt:
352-
runs-on: ubuntu-20.04
355+
runs-on: ubuntu-latest
353356
steps:
354357
- name: Checkout
355358
uses: actions/checkout@v4

0 commit comments

Comments
 (0)