|
7 | 7 | pull_request:
|
8 | 8 |
|
9 | 9 | jobs:
|
10 |
| - rustfmt: |
11 |
| - name: Rustfmt |
12 |
| - runs-on: ubuntu-latest |
13 |
| - steps: |
14 |
| - - uses: actions/checkout@v3 |
15 |
| - with: |
16 |
| - submodules: true |
17 |
| - - uses: ./.github/actions/install-rust |
18 |
| - with: |
19 |
| - toolchain: stable |
20 |
| - - run: cargo fmt --all -- --check |
21 |
| - |
22 |
| - check_cross: |
23 |
| - name: Check Cross-Compilation |
24 |
| - runs-on: ${{ matrix.os }} |
25 |
| - strategy: |
26 |
| - matrix: |
27 |
| - build: [stable, beta] |
28 |
| - include: |
29 |
| - - build: stable |
30 |
| - os: ubuntu-latest |
31 |
| - rust: stable |
32 |
| - - build: beta |
33 |
| - os: ubuntu-latest |
34 |
| - rust: beta |
35 |
| - |
36 |
| - steps: |
37 |
| - - uses: actions/checkout@v3 |
38 |
| - with: |
39 |
| - submodules: true |
40 |
| - - uses: ./.github/actions/install-rust |
41 |
| - with: |
42 |
| - toolchain: ${{ matrix.rust }} |
43 |
| - |
44 |
| - - name: Install musl-tools |
45 |
| - run: | |
46 |
| - set -ex |
47 |
| - sudo apt-get update |
48 |
| - sudo apt-get install -y musl-tools |
49 |
| -
|
50 |
| - # Disable x86_64-pc-windows-msvc, x86_64-pc-windows-gnu, |
51 |
| - # i686-pc-windows-msvc, and i686-pc-windows-gnu for now, since async-std |
52 |
| - # doesn't currently support cross-compiling to Windows. |
53 |
| - # |
54 |
| - # Also disable x86_64-fuchsia and wasm32-unknown-emscripten, since |
55 |
| - # async-std doesn't currently cross-compile on them. |
56 |
| - - run: > |
57 |
| - rustup target add |
58 |
| - x86_64-unknown-linux-musl |
59 |
| - x86_64-unknown-linux-gnux32 |
60 |
| - x86_64-linux-android |
61 |
| - x86_64-apple-darwin |
62 |
| - x86_64-unknown-freebsd |
63 |
| - x86_64-unknown-netbsd |
64 |
| - i686-unknown-linux-gnu |
65 |
| - i686-unknown-linux-musl |
66 |
| - - run: cargo check --workspace --bins --examples --tests --features=fs_utf8 --release -vv |
67 |
| - - run: cargo check --workspace --bins --examples --tests --features=fs_utf8 --release -vv --target=x86_64-unknown-linux-musl |
68 |
| - - run: cargo check --workspace --bins --examples --tests --features=fs_utf8 --release -vv --target=x86_64-unknown-linux-gnux32 |
69 |
| - - run: cargo check --workspace --bins --examples --tests --features=fs_utf8 --release -vv --target=x86_64-linux-android |
70 |
| - - run: cargo check --workspace --bins --examples --tests --features=fs_utf8 --release -vv --target=x86_64-apple-darwin |
71 |
| - - run: cargo check --workspace --bins --examples --tests --features=fs_utf8 --release -vv --target=x86_64-unknown-freebsd |
72 |
| - - run: cargo check --workspace --bins --examples --tests --features=fs_utf8 --release -vv --target=x86_64-unknown-netbsd |
73 |
| - - run: cargo check --workspace --bins --examples --tests --features=fs_utf8 --release -vv --target=i686-unknown-linux-gnu |
74 |
| - - run: cargo check --workspace --bins --examples --tests --features=fs_utf8 --release -vv --target=i686-unknown-linux-musl |
75 |
| - |
76 |
| - check_cross_windows: |
77 |
| - name: Check Cross-Compilation on Windows |
78 |
| - runs-on: ${{ matrix.os }} |
79 |
| - strategy: |
80 |
| - matrix: |
81 |
| - build: [stable, beta] |
82 |
| - include: |
83 |
| - - build: stable |
84 |
| - os: windows-latest |
85 |
| - rust: stable |
86 |
| - - build: beta |
87 |
| - os: windows-latest |
88 |
| - rust: beta |
89 |
| - |
90 |
| - steps: |
91 |
| - - uses: actions/checkout@v3 |
92 |
| - with: |
93 |
| - submodules: true |
94 |
| - - uses: ./.github/actions/install-rust |
95 |
| - with: |
96 |
| - toolchain: ${{ matrix.rust }} |
97 |
| - - run: > |
98 |
| - rustup target add |
99 |
| - x86_64-pc-windows-gnu |
100 |
| - i686-pc-windows-msvc |
101 |
| - i686-pc-windows-gnu |
102 |
| - - run: cargo check --workspace --bins --examples --tests --features=fs_utf8 --release -vv |
103 |
| - - run: cargo check --workspace --bins --examples --tests --features=fs_utf8 --release -vv --target=x86_64-pc-windows-gnu |
104 |
| - - run: cargo check --workspace --bins --examples --tests --features=fs_utf8 --release -vv --target=i686-pc-windows-msvc |
105 |
| - - run: cargo check --workspace --bins --examples --tests --features=fs_utf8 --release -vv --target=i686-pc-windows-gnu |
106 |
| - |
107 |
| - check_cross_nightly: |
108 |
| - name: Check Cross-Compilation on Rust nightly |
109 |
| - runs-on: ${{ matrix.os }} |
110 |
| - strategy: |
111 |
| - matrix: |
112 |
| - build: [nightly] |
113 |
| - include: |
114 |
| - - build: nightly |
115 |
| - os: ubuntu-latest |
116 |
| - rust: nightly |
117 |
| - |
118 |
| - steps: |
119 |
| - - uses: actions/checkout@v3 |
120 |
| - with: |
121 |
| - submodules: true |
122 |
| - - uses: ./.github/actions/install-rust |
123 |
| - with: |
124 |
| - toolchain: ${{ matrix.rust }} |
125 |
| - |
126 |
| - - name: Install musl-tools |
127 |
| - run: | |
128 |
| - set -ex |
129 |
| - sudo apt-get update |
130 |
| - sudo apt-get install -y musl-tools |
131 |
| -
|
132 |
| - # Disable x86_64-pc-windows-msvc, x86_64-pc-windows-gnu, |
133 |
| - # i686-pc-windows-msvc, i686-pc-windows-gnu for now, and |
134 |
| - # aarch64-pc-windows-msvc, since async-std doesn't currently support |
135 |
| - # cross-compiling to Windows. |
136 |
| - # |
137 |
| - # Also disable x86_64-fuchsia and wasm32-unknown-emscripten, since |
138 |
| - # async-std doesn't currently cross-compile on them. |
139 |
| - - run: > |
140 |
| - rustup target add |
141 |
| - x86_64-unknown-linux-musl |
142 |
| - x86_64-unknown-linux-gnux32 |
143 |
| - x86_64-linux-android |
144 |
| - x86_64-apple-darwin |
145 |
| - x86_64-unknown-freebsd |
146 |
| - x86_64-unknown-netbsd |
147 |
| - i686-unknown-linux-gnu |
148 |
| - i686-unknown-linux-musl |
149 |
| - aarch64-apple-darwin |
150 |
| - riscv64gc-unknown-linux-gnu |
151 |
| - arm-unknown-linux-gnueabihf |
152 |
| - aarch64-linux-android |
153 |
| - wasm32-wasi |
154 |
| - - run: cargo check --workspace --all-targets --all-features --release -vv |
155 |
| - - run: cargo check --workspace --all-targets --all-features --release -vv --target=x86_64-unknown-linux-musl |
156 |
| - - run: cargo check --workspace --all-targets --all-features --release -vv --target=x86_64-unknown-linux-gnux32 |
157 |
| - - run: cargo check --workspace --all-targets --all-features --release -vv --target=x86_64-linux-android |
158 |
| - - run: cargo check --workspace --all-targets --all-features --release -vv --target=x86_64-apple-darwin |
159 |
| - - run: cargo check --workspace --all-targets --all-features --release -vv --target=x86_64-unknown-freebsd |
160 |
| - - run: cargo check --workspace --all-targets --all-features --release -vv --target=x86_64-unknown-netbsd |
161 |
| - - run: cargo check --workspace --all-targets --all-features --release -vv --target=i686-unknown-linux-gnu |
162 |
| - - run: cargo check --workspace --all-targets --all-features --release -vv --target=i686-unknown-linux-musl |
163 |
| - - run: cargo check --workspace --all-targets --all-features --release -vv --target=aarch64-apple-darwin |
164 |
| - - run: cargo check --workspace --all-targets --all-features --release -vv --target=riscv64gc-unknown-linux-gnu |
165 |
| - - run: cargo check --workspace --all-targets --all-features --release -vv --target=arm-unknown-linux-gnueabihf |
166 |
| - - run: cargo check --workspace --all-targets --all-features --release -vv --target=aarch64-linux-android |
167 |
| - - run: cd cap-std && cargo check --features=fs_utf8 --release -vv --target=wasm32-wasi |
168 |
| - |
169 |
| - check_cross_nightly_windows: |
170 |
| - name: Check Cross-Compilation on Rust nightly on Windows |
171 |
| - runs-on: ${{ matrix.os }} |
172 |
| - strategy: |
173 |
| - matrix: |
174 |
| - build: [nightly] |
175 |
| - include: |
176 |
| - - build: nightly |
177 |
| - os: windows-latest |
178 |
| - rust: nightly |
179 |
| - |
180 |
| - steps: |
181 |
| - - uses: actions/checkout@v3 |
182 |
| - with: |
183 |
| - submodules: true |
184 |
| - - uses: ./.github/actions/install-rust |
185 |
| - with: |
186 |
| - toolchain: ${{ matrix.rust }} |
187 |
| - - run: > |
188 |
| - rustup target add |
189 |
| - x86_64-pc-windows-gnu |
190 |
| - i686-pc-windows-msvc |
191 |
| - i686-pc-windows-gnu |
192 |
| - aarch64-pc-windows-msvc |
193 |
| - - run: cargo check --workspace --all-targets --all-features --release -vv |
194 |
| - - run: cargo check --workspace --all-targets --all-features --release -vv --target=x86_64-pc-windows-gnu |
195 |
| - - run: cargo check --workspace --all-targets --all-features --release -vv --target=i686-pc-windows-msvc |
196 |
| - - run: cargo check --workspace --all-targets --all-features --release -vv --target=i686-pc-windows-gnu |
197 |
| - - run: cargo check --workspace --all-targets --all-features --release -vv --target=aarch64-pc-windows-msvc |
198 |
| - |
199 | 10 | test:
|
200 | 11 | name: Test
|
201 | 12 | runs-on: ${{ matrix.os }}
|
202 | 13 | strategy:
|
203 | 14 | matrix:
|
204 |
| - build: [stable, windows-latest, windows-2019, macos-latest, macos-12, beta, ubuntu-20.04, aarch64-ubuntu] |
| 15 | + build: [windows-latest] |
205 | 16 | include:
|
206 |
| - - build: stable |
207 |
| - os: ubuntu-latest |
208 |
| - rust: stable |
209 | 17 | - build: windows-latest
|
210 | 18 | os: windows-latest
|
211 | 19 | rust: stable
|
212 |
| - - build: windows-2019 |
213 |
| - os: windows-2019 |
214 |
| - rust: stable |
215 |
| - - build: macos-latest |
216 |
| - os: macos-latest |
217 |
| - rust: stable |
218 |
| - - build: macos-11 |
219 |
| - os: macos-11 |
220 |
| - rust: stable |
221 |
| - - build: beta |
222 |
| - os: ubuntu-latest |
223 |
| - rust: beta |
224 |
| - - build: ubuntu-20.04 |
225 |
| - os: ubuntu-20.04 |
226 |
| - rust: stable |
227 |
| - - build: aarch64-ubuntu |
228 |
| - os: ubuntu-latest |
229 |
| - rust: stable |
230 |
| - target: aarch64-unknown-linux-gnu |
231 |
| - gcc_package: gcc-aarch64-linux-gnu |
232 |
| - gcc: aarch64-linux-gnu-gcc |
233 |
| - qemu: qemu-aarch64 -L /usr/aarch64-linux-gnu |
234 |
| - qemu_target: aarch64-linux-user |
235 | 20 |
|
236 | 21 | steps:
|
237 | 22 | - uses: actions/checkout@v3
|
@@ -275,119 +60,3 @@ jobs:
|
275 | 60 | env:
|
276 | 61 | RUST_BACKTRACE: 1
|
277 | 62 | if: matrix.target != ''
|
278 |
| - |
279 |
| - test_nightly: |
280 |
| - name: Test with Rust nightly |
281 |
| - runs-on: ${{ matrix.os }} |
282 |
| - strategy: |
283 |
| - matrix: |
284 |
| - build: [ubuntu, windows] |
285 |
| - include: |
286 |
| - - build: ubuntu |
287 |
| - os: ubuntu-latest |
288 |
| - rust: nightly |
289 |
| - - build: windows |
290 |
| - os: windows-latest |
291 |
| - rust: nightly |
292 |
| - |
293 |
| - steps: |
294 |
| - - uses: actions/checkout@v3 |
295 |
| - with: |
296 |
| - submodules: true |
297 |
| - - uses: ./.github/actions/install-rust |
298 |
| - with: |
299 |
| - toolchain: ${{ matrix.rust }} |
300 |
| - - run: cargo test --all-features --workspace |
301 |
| - |
302 |
| - test_musl: |
303 |
| - name: Test on Musl |
304 |
| - runs-on: ${{ matrix.os }} |
305 |
| - strategy: |
306 |
| - matrix: |
307 |
| - build: [ubuntu] |
308 |
| - include: |
309 |
| - - build: ubuntu |
310 |
| - os: ubuntu-latest |
311 |
| - rust: stable |
312 |
| - |
313 |
| - steps: |
314 |
| - - uses: actions/checkout@v3 |
315 |
| - with: |
316 |
| - submodules: true |
317 |
| - - uses: ./.github/actions/install-rust |
318 |
| - with: |
319 |
| - toolchain: ${{ matrix.rust }} |
320 |
| - |
321 |
| - - name: Install musl-tools |
322 |
| - run: | |
323 |
| - set -ex |
324 |
| - sudo apt-get update |
325 |
| - sudo apt-get install -y musl-tools |
326 |
| -
|
327 |
| - - run: rustup target add x86_64-unknown-linux-musl |
328 |
| - - run: cargo test --target x86_64-unknown-linux-musl --features fs_utf8 --workspace |
329 |
| - |
330 |
| - test_linux_raw: |
331 |
| - name: Test linux-raw support |
332 |
| - runs-on: ${{ matrix.os }} |
333 |
| - strategy: |
334 |
| - matrix: |
335 |
| - build: [ubuntu, ubuntu-20.04] |
336 |
| - include: |
337 |
| - - build: ubuntu |
338 |
| - os: ubuntu-latest |
339 |
| - rust: nightly |
340 |
| - - build: ubuntu-20.04 |
341 |
| - os: ubuntu-20.04 |
342 |
| - rust: nightly |
343 |
| - |
344 |
| - env: |
345 |
| - RUSTFLAGS: --cfg linux_raw |
346 |
| - RUSTDOCFLAGS: --cfg linux_raw |
347 |
| - steps: |
348 |
| - - uses: actions/checkout@v3 |
349 |
| - with: |
350 |
| - submodules: true |
351 |
| - - uses: ./.github/actions/install-rust |
352 |
| - with: |
353 |
| - toolchain: ${{ matrix.rust }} |
354 |
| - - run: cargo test --all-features --workspace |
355 |
| - |
356 |
| - test_msrv: |
357 |
| - name: Test |
358 |
| - runs-on: ${{ matrix.os }} |
359 |
| - strategy: |
360 |
| - matrix: |
361 |
| - build: [msrv] |
362 |
| - include: |
363 |
| - - build: msrv |
364 |
| - os: ubuntu-latest |
365 |
| - rust: 1.63 |
366 |
| - |
367 |
| - steps: |
368 |
| - - uses: actions/checkout@v3 |
369 |
| - with: |
370 |
| - submodules: true |
371 |
| - - uses: ./.github/actions/install-rust |
372 |
| - with: |
373 |
| - toolchain: ${{ matrix.rust }} |
374 |
| - # Don't use --all-features because some of the features have dependencies |
375 |
| - # that don't work on newer Rust versions. |
376 |
| - - run: cargo test --workspace --features=fs_utf8,arf_strings |
377 |
| - env: |
378 |
| - RUST_BACKTRACE: 1 |
379 |
| - |
380 |
| - fuzz_targets: |
381 |
| - name: Fuzz Targets |
382 |
| - runs-on: ubuntu-latest |
383 |
| - steps: |
384 |
| - - uses: actions/checkout@v3 |
385 |
| - with: |
386 |
| - submodules: true |
387 |
| - - uses: ./.github/actions/install-rust |
388 |
| - with: |
389 |
| - toolchain: nightly |
390 |
| - - run: cargo install cargo-fuzz --vers "^0.11" |
391 |
| - - run: cargo fetch |
392 |
| - working-directory: ./fuzz |
393 |
| - - run: cargo fuzz build --dev |
0 commit comments