44
44
run : sudo rm -rf $CARGO_HOME/registry/index
45
45
46
46
macos-aarch64 :
47
- runs-on : macos-14
47
+ runs-on : macos-latest
48
48
env :
49
49
TARGET : aarch64-apple-darwin
50
50
steps :
73
73
# Use cross for QEMU-based testing
74
74
# cross needs to execute Docker, GitHub Action already has it installed
75
75
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
77
80
needs : [rustfmt, minver, macos, linux_native_builds, rust_stable]
78
81
strategy :
79
82
fail-fast : false
@@ -129,7 +132,7 @@ jobs:
129
132
# Tasks for Linux native builds
130
133
# Only test x86_64 targets on GitHub Action, leave aarch64 one in Cirrus CI.
131
134
linux_native_builds :
132
- runs-on : ubuntu-20.04
135
+ runs-on : ubuntu-latest
133
136
strategy :
134
137
fail-fast : false
135
138
matrix :
@@ -165,7 +168,7 @@ jobs:
165
168
run : sudo rm -rf $CARGO_HOME/registry/index;
166
169
167
170
rust_stable :
168
- runs-on : ubuntu-20.04
171
+ runs-on : ubuntu-latest
169
172
env :
170
173
TARGET : x86_64-unknown-linux-gnu
171
174
steps :
@@ -194,7 +197,7 @@ jobs:
194
197
195
198
# Tasks for cross-compiling, but no testing
196
199
cross_compiling :
197
- runs-on : ubuntu-20.04
200
+ runs-on : ubuntu-latest
198
201
needs : [rustfmt, minver, macos, linux_native_builds, rust_stable]
199
202
env :
200
203
BUILD : check
@@ -249,7 +252,7 @@ jobs:
249
252
250
253
251
254
redox :
252
- runs-on : ubuntu-20.04
255
+ runs-on : ubuntu-latest
253
256
needs : [rustfmt, minver, macos, linux_native_builds, rust_stable]
254
257
env :
255
258
TARGET : x86_64-unknown-redox
@@ -282,7 +285,7 @@ jobs:
282
285
283
286
# Rust Tier 3 targets can't use Rustup
284
287
tier3 :
285
- runs-on : ubuntu-20.04
288
+ runs-on : ubuntu-latest
286
289
env :
287
290
BUILD : check
288
291
ZFLAGS : -Zbuild-std
@@ -328,7 +331,7 @@ jobs:
328
331
# "cargo test" doesn't work because some of our dev-dependencies, like
329
332
# rand, can't build with their own minimal dependencies.
330
333
minver :
331
- runs-on : ubuntu-20.04
334
+ runs-on : ubuntu-latest
332
335
env :
333
336
TARGET : x86_64-unknown-linux-gnu
334
337
steps :
@@ -349,7 +352,7 @@ jobs:
349
352
350
353
# Tasks that checks if the code is formatted right using `cargo fmt` tool
351
354
rustfmt :
352
- runs-on : ubuntu-20.04
355
+ runs-on : ubuntu-latest
353
356
steps :
354
357
- name : Checkout
355
358
uses : actions/checkout@v4
0 commit comments