11name : CI
22on :
33 pull_request :
4- push : # bors
5- branches :
6- - staging
7- - trying
4+ merge_group :
85
96env :
10- CI : 1
11- CARGO_INCREMENTAL : 0
12- CARGO_PROFILE_DEV_DEBUG : false
13- CARGO_PROFILE_RELEASE_DEBUG : false
147 RUSTFLAGS : -D warnings -W unreachable-pub
15- MIRIFLAGS : -Zmiri-check-number-validity -Zmiri-symbolic-alignment-check -Zmiri-tag-raw-pointers
8+ MIRIFLAGS : -Zmiri-strict-provenance -Zmiri-symbolic-alignment-check
169
1710jobs :
1811 cargo-test :
1912 name : Tests
20- if : ${{ github.event.pusher.name == 'bors[bot]' }}
2113 runs-on : ubuntu-latest
2214 steps :
2315
2416 - name : Checkout repository
25- uses : actions/checkout@v2
17+ uses : actions/checkout@v4
2618
2719 - name : Install toolchain
28- uses : actions-rs/toolchain@v1
29- with :
30- toolchain : 1.59.0
31- profile : minimal
32- override : true
20+ 3321
3422 - name : Enable caching
35- uses : Swatinem/rust-cache@v1.3.0
23+ uses : Swatinem/rust-cache@v2
3624
3725 - name : Compile
38- uses : actions-rs/cargo@v1
39- with :
40- command : test
41- args : --all --all-targets --examples --no-run
26+ run : cargo test --all --all-targets --examples --no-run
4227
4328 - name : Run tests
44- uses : actions-rs/cargo@v1
45- with :
46- command : test
47- args : --all --all-targets --examples
29+ run : cargo test --all --all-targets --examples
4830
4931 cargo-test-msrv :
50- name : Tests (1.41 .0)
32+ name : Tests (1.80 .0)
5133 runs-on : ubuntu-latest
5234 steps :
5335
5436 - name : Checkout repository
55- uses : actions/checkout@v2
37+ uses : actions/checkout@v4
5638
5739 - name : Install arbitrary nightly toolchain
58- uses : actions-rs/ toolchain@v1
40+ uses : dtolnay/rust- toolchain@master
5941 with :
60- toolchain : nightly-2022-01-01
61- profile : minimal
42+ toolchain : nightly-2025-01-01
6243
6344 - name : Install msrv toolchain
64- uses : actions-rs/toolchain@v1
65- with :
66- toolchain : 1.41.0
67- profile : minimal
68- override : true
45+ 6946
7047 - name : Generate minimal-versions lockfile
71- uses : actions-rs/cargo@v1
72- with :
73- command : +nightly-2022-01-01
74- args : -Z minimal-versions generate-lockfile
48+ run : cargo +nightly-2025-01-01 -Zminimal-versions generate-lockfile
7549
7650 - name : Enable caching
77- uses : Swatinem/rust-cache@v1.3.0
51+ uses : Swatinem/rust-cache@v2
7852
7953 - name : Compile
80- uses : actions-rs/cargo@v1
81- with :
82- command : test
83- args : --locked --all --all-targets --examples --no-run
54+ run : cargo test --locked --all --all-targets --examples --no-run
8455
8556 - name : Run tests
86- uses : actions-rs/cargo@v1
87- with :
88- command : test
89- args : --locked --all --all-targets --examples
57+ run : cargo test --locked --all --all-targets --examples
9058
9159 cargo-fmt :
9260 name : Formatting
9361 runs-on : ubuntu-latest
9462 steps :
9563
9664 - name : Checkout repository
97- uses : actions/checkout@v2
65+ uses : actions/checkout@v4
9866
99- - name : Instal toolchain
100- uses : actions-rs/ toolchain@v1
67+ - name : Install toolchain
68+ uses : dtolnay/rust- toolchain@1.84
10169 with :
102- profile : minimal
103- toolchain : 1.59.0
104- override : true
10570 components : rustfmt
10671
10772 - name : Check formatting
108- uses : actions-rs/cargo@v1
109- with :
110- command : fmt
111- args : --all -- --check
73+ run : cargo fmt --all -- --check
11274
11375 cargo-clippy :
11476 name : Lints
@@ -118,47 +80,32 @@ jobs:
11880 - name : Checkout repository
11981 uses : actions/checkout@v2
12082
121- - name : Install beta toolchain
122- uses : actions-rs/ toolchain@v1
83+ - name : Install toolchain
84+ uses : dtolnay/rust- toolchain@1.84
12385 with :
124- profile : minimal
125- toolchain : 1.59.0
126- override : true
12786 components : clippy
12887
129- - name : Check style
130- uses : actions-rs/cargo@v1
131- with :
132- command : clippy
133- args : --all --all-targets
88+ - name : Check clippy
89+ run : cargo clippy --all --all-targets
13490
13591 cargo-miri :
13692 name : Miri
13793 runs-on : ubuntu-latest
13894 steps :
13995
14096 - name : Checkout repository
141- uses : actions/checkout@v2
97+ uses : actions/checkout@v4
14298
14399 - name : Install nightly toolchain
144- uses : actions-rs/ toolchain@v1
100+ uses : dtolnay/rust- toolchain@nightly
145101 with :
146- profile : minimal
147- toolchain : nightly
148- override : true
149102 components : miri
150103
151104 - name : Enable caching
152- uses : Swatinem/rust-cache@v1.3.0
105+ uses : Swatinem/rust-cache@v2
153106
154107 - name : Miri setup
155- uses : actions-rs/cargo@v1
156- with :
157- command : miri
158- args : setup
108+ run : cargo miri setup
159109
160110 - name : Miri test
161- uses : actions-rs/cargo@v1
162- with :
163- command : miri
164- args : test --workspace --all-features
111+ run : cargo miri test --workspace --all-features
0 commit comments