43
43
# `CRATE_NIGHTLY_XXX` are flags that we add to `XXX` only on the nightly
44
44
# toolchain.
45
45
CRATE_NIGHTLY_RUSTFLAGS : -Zrandomize-layout
46
- CRATE_NIGHTLY_MIRIFLAGS : " -Zmiri-disable-isolation -Zmiri-symbolic-alignment-check "
46
+ CRATE_NIGHTLY_MIRIFLAGS : " -Zmiri-disable-isolation"
47
47
48
48
jobs :
49
49
build_test :
50
50
runs-on : ubuntu-latest
51
51
52
52
strategy :
53
53
matrix :
54
- toolchain : [ "msrv", " stable", "nightly" ]
54
+ toolchain : [ "stable", "nightly" ]
55
55
target : [ "i686-unknown-linux-gnu", "x86_64-unknown-linux-gnu" ]
56
56
57
57
name : Build & Test (toolchain:${{ matrix.toolchain }}, target:${{ matrix.target }})
@@ -138,23 +138,27 @@ jobs:
138
138
139
139
- name : Check lib
140
140
run : cargo +${{ env.CRATE_TOOLCHAIN }} check --target ${{ matrix.target }} --lib --verbose
141
- if : ${{ matrix.toolchain == 'msrv' }}
142
141
143
142
- name : Check extras
144
143
run : cargo +${{ env.CRATE_TOOLCHAIN }} check --target ${{ matrix.target }} --all-targets --verbose
145
- if : ${{ matrix.toolchain != 'msrv' }}
146
144
147
- - name : Test
148
- run : cargo +${{ env.CRATE_TOOLCHAIN }} test --target ${{ matrix.target }} --verbose
145
+ - name : Test (doc)
146
+ run : cargo +${{ env.CRATE_TOOLCHAIN }} test --target ${{ matrix.target }} --verbose --doc
149
147
# Only run tests when targetting x86 (32- or 64-bit) - we're executing on
150
148
# x86_64, so we can't run tests for any non-x86 target.
151
- if : ${{ matrix.toolchain != 'msrv' && (contains(matrix.target, 'x86_64') || contains(matrix.target, 'i686')) }}
149
+ if : ${{ matrix.toolchain == 'nightly' && (contains(matrix.target, 'x86_64') || contains(matrix.target, 'i686')) }}
150
+
151
+ - name : Test (integration)
152
+ run : cargo +${{ env.CRATE_TOOLCHAIN }} test --target ${{ matrix.target }} --verbose --tests
153
+ # Only run tests when targetting x86 (32- or 64-bit) - we're executing on
154
+ # x86_64, so we can't run tests for any non-x86 target.
155
+ if : ${{ (contains(matrix.target, 'x86_64') || contains(matrix.target, 'i686')) }}
152
156
153
157
- name : Test (loom)
154
158
run : cargo +${{ env.CRATE_TOOLCHAIN }} test --target ${{ matrix.target }} --verbose --release --tests
155
159
# Only run tests when targetting x86 (32- or 64-bit) - we're executing on
156
160
# x86_64, so we can't run tests for any non-x86 target.
157
- if : ${{ matrix.toolchain != 'msrv' && (contains(matrix.target, 'x86_64') || contains(matrix.target, 'aarch64')) }}
161
+ if : ${{ (contains(matrix.target, 'x86_64') || contains(matrix.target, 'aarch64')) }}
158
162
env :
159
163
RUSTFLAGS : --cfg loom ${{ env.RUSTFLAGS }}
160
164
@@ -198,19 +202,6 @@ jobs:
198
202
set -e
199
203
cargo clippy --all-targets
200
204
201
- check_msrv :
202
- runs-on : ubuntu-latest
203
- name : Check MSRVs match
204
- steps :
205
- - uses : actions/checkout@v3
206
- - name : Rust Cache
207
-
208
- - uses : extractions/setup-just@v1
209
- # Make sure that the MSRV in async-backtrace's and async-backtrace-attributes's
210
- # `Cargo.toml` files are the same.
211
- - name : Check MSRVs match
212
- run : just check-msrv
213
-
214
205
check_readme :
215
206
runs-on : ubuntu-latest
216
207
name : Check README is correctly generated.
@@ -219,7 +210,7 @@ jobs:
219
210
- name : Rust Cache
220
211
221
212
- uses : extractions/setup-just@v1
222
- - name : Check MSRVs match
213
+ - name : Check README matches
223
214
run : |
224
215
set -e
225
216
cargo install cargo-readme --version 3.2.0
@@ -228,14 +219,13 @@ jobs:
228
219
229
220
ci-success :
230
221
name : ci
231
- if : ${{ success() }}
222
+ if : failure()
232
223
needs :
233
224
- build_test
234
225
- check_fmt
235
226
- check_clippy
236
- - check_msrv
237
227
- check_readme
238
228
runs-on : ubuntu-latest
239
229
steps :
240
- - name : CI succeeded
241
- run : exit 0
230
+ - name : CI failed
231
+ run : exit 1
0 commit comments