88env :
99 RUST_BACKTRACE : 1
1010 toolchain_style : stable
11- toolchain_msrv : 1.70.0
11+ toolchain_msrv : 1.74.1
1212 toolchain_h3_quinn_msrv : 1.74.1
1313 toolchain_doc : nightly-2025-04-02
1414 toolchain_lint : stable
@@ -35,76 +35,49 @@ jobs:
3535 name : Check Style
3636 runs-on : ubuntu-latest
3737 steps :
38- - uses : actions/checkout@v3
38+ - uses : actions/checkout@v5
3939 - name : Install Rust ${{ env.toolchain_style }}
40- uses : actions-rs/ toolchain@v1
40+ uses : actions-rust-lang/setup-rust- toolchain@v1
4141 with :
42- profile : minimal
4342 toolchain : ${{ env.toolchain_style }}
44- override : true
4543 components : rustfmt
46- - uses : Swatinem/rust-cache@v2
47- - name : cargo fmt --all -- --check
48- uses : actions-rs/cargo@v1
49- with :
50- command : fmt
51- args : --all -- --check
44+ - run : cargo fmt --all -- --check
5245
5346 lint :
5447 name : Lint
5548 runs-on : ubuntu-latest
5649 steps :
57- - uses : actions/checkout@v3
50+ - uses : actions/checkout@v5
5851 - name : Install Rust ${{ env.toolchain_lint }}
59- uses : actions-rs/ toolchain@v1
52+ uses : actions-rust-lang/setup-rust- toolchain@v1
6053 with :
61- profile : minimal
6254 toolchain : ${{ env.toolchain_lint }}
63- override : true
6455 components : clippy
65- - uses : Swatinem/rust-cache@v2
66- - name : cargo clippy
67- uses : actions-rs/cargo@v1
68- with :
69- command : clippy
56+ - run : cargo clippy
7057
7158 msrv :
7259 name : Check MSRV
7360 needs : [style]
7461 runs-on : ubuntu-latest
7562 steps :
76- - uses : actions/checkout@v3
63+ - uses : actions/checkout@v5
7764 - name : Install Rust ${{ env.toolchain_msrv }}
78- uses : actions-rs/ toolchain@v1
65+ uses : actions-rust-lang/setup-rust- toolchain@v1
7966 with :
80- profile : minimal
8167 toolchain : ${{ env.toolchain_msrv }}
82- override : true
83- - uses : Swatinem/rust-cache@v2
84- - name : cargo check -p h3
85- uses : actions-rs/cargo@v1
86- with :
87- command : check
88- args : -p h3
68+ - run : cargo check -p h3
8969
9070 msrv_h3_quinn :
9171 name : Check MSRV of `h3-quinn`
9272 needs : [style]
9373 runs-on : ubuntu-latest
9474 steps :
95- - uses : actions/checkout@v3
75+ - uses : actions/checkout@v5
9676 - name : Install Rust ${{ env.toolchain_h3_quinn_msrv }}
97- uses : actions-rs/ toolchain@v1
77+ uses : actions-rust-lang/setup-rust- toolchain@v1
9878 with :
99- profile : minimal
10079 toolchain : ${{ env.toolchain_h3_quinn_msrv }}
101- override : true
102- - uses : Swatinem/rust-cache@v2
103- - name : cargo check -p h3-quinn
104- uses : actions-rs/cargo@v1
105- with :
106- command : check
107- args : -p h3-quinn
80+ - run : cargo check -p h3-quinn
10881
10982 test :
11083 name : Test ${{ matrix.toolchain }} ${{ matrix.os }} ${{ matrix.target }}
12396 target : i686-unknown-linux-gnu
12497 runs-on : ${{ matrix.os }}
12598 steps :
126- - uses : actions/checkout@v3
99+ - uses : actions/checkout@v5
127100 # Add this step for 32-bit build support
128101 - name : Install 32-bit development libraries
129102 if : matrix.target == 'i686-unknown-linux-gnu'
@@ -132,18 +105,13 @@ jobs:
132105 sudo apt-get update
133106 sudo apt-get install -y gcc-multilib libc6-dev-i386
134107 - name : Install Rust ${{ matrix.toolchain }}
135- uses : actions-rs/ toolchain@v1
108+ uses : actions-rust-lang/setup-rust- toolchain@v1
136109 with :
137- profile : minimal
138110 toolchain : ${{ matrix.toolchain }}
139111 target : ${{ matrix.target }}
140- override : true
141- - uses : Swatinem/rust-cache@v2
142- - name : cargo test
143- uses : actions-rs/cargo@v1
144- with :
145- command : test
146- args : --features ${{ matrix.features }} --target ${{ matrix.target }}
112+ - run : cargo test --features ${{ matrix.features }} --target ${{ matrix.target }}
113+ env : # [cfg(feature = "datagram")] unexpected `cfg` condition value: `datagram`
114+ RUSTFLAGS : " -A unexpected_cfgs"
147115 - name : h3Spec
148116 run : ./ci/h3spec.sh
149117 if : matrix.toolchain == 'stable'
@@ -153,49 +121,35 @@ jobs:
153121 needs : [test]
154122 runs-on : ubuntu-latest
155123 steps :
156- - uses : actions/checkout@v3
124+ - uses : actions/checkout@v5
157125 - name : Install Rust ${{ env.toolchain_doc }}
158- uses : actions-rs/ toolchain@v1
126+ uses : actions-rust-lang/setup-rust- toolchain@v1
159127 with :
160- profile : minimal
161128 toolchain : ${{ env.toolchain_doc }}
162- override : true
163- - uses : Swatinem/rust-cache@v2
164- - name : cargo rustdoc -p h3 -- -D intra-doc-link-resolution-failure
165- uses : actions-rs/cargo@v1
166- with :
167- command : rustdoc
168- args : -p h3 -- -D intra-doc-link-resolution-failure
129+ - run : cargo rustdoc -p h3 -- -D intra-doc-link-resolution-failure
169130
170131 fuzz :
171132 name : Fuzz test
172133 needs : [test]
173134 runs-on : ubuntu-latest
174135 steps :
175- - uses : actions/checkout@v3
136+ - uses : actions/checkout@v5
176137 - name : Install Rust ${{ env.toolchain_fuzz }}
177- uses : actions-rs/ toolchain@v1
138+ uses : actions-rust-lang/setup-rust- toolchain@v1
178139 with :
179- profile : minimal
180140 toolchain : ${{ env.toolchain_fuzz }}
181- override : true
182- - uses : Swatinem/rust-cache@v2
183141 - name : Install cargo-fuzz
184142 uses : camshaft/install@v1
185143 with :
186144 crate : cargo-fuzz
187- - name : cargo fuzz run fuzz_varint -- -runs=1
188- uses : actions-rs/cargo@v1
189- with :
190- command : fuzz
191- args : run fuzz_varint -- -runs=1
145+ - run : cargo fuzz run fuzz_varint -- -runs=1
192146
193147 compliance :
194148 name : Compliance report
195149 needs : [test]
196150 runs-on : ubuntu-latest
197151 steps :
198- - uses : actions/checkout@v3
152+ - uses : actions/checkout@v5
199153 with :
200154 persist-credentials : false
201155 fetch-depth : 0
@@ -209,13 +163,10 @@ jobs:
209163 needs : [test]
210164 runs-on : ubuntu-latest
211165 steps :
212- - uses : actions/checkout@v3
166+ - uses : actions/checkout@v5
213167 - name : Install Rust stable
214- uses : actions-rs/ toolchain@v1
168+ uses : actions-rust-lang/setup-rust- toolchain@v1
215169 with :
216- profile : minimal
217170 toolchain : stable
218- override : true
219- - uses : Swatinem/rust-cache@v2
220171 - name : Run server and client examples test
221172 run : ./ci/example_test.sh
0 commit comments