|
1 | 1 | name: All Tests and Builds
|
2 | 2 |
|
| 3 | +env: |
| 4 | + # It's really `--all-features`, but not adding the mutually exclusive features from rkyv |
| 5 | + ALL_NON_EXCLUSIVE_FEATURES: --features "libc winapi unstable-locales rkyv serde arbitrary iana-time-zone android-tzdata" |
| 6 | + |
3 | 7 | on:
|
4 | 8 | push:
|
5 | 9 | branches: [main, 0.4.x]
|
|
16 | 20 | - uses: actions/checkout@v4
|
17 | 21 | - uses: dtolnay/rust-toolchain@stable
|
18 | 22 | - uses: Swatinem/rust-cache@v2
|
19 |
| - - run: cargo test --all-features --color=always -- --color=always |
| 23 | + - run: cargo test ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --color=always -- --color=always |
20 | 24 |
|
21 | 25 | # later this may be able to be included with the below
|
22 | 26 | # kept separate for now as the following don't compile on 1.57
|
|
59 | 63 | - run: cargo check --manifest-path fuzz/Cargo.toml --all-targets
|
60 | 64 | # run --lib and --doc to avoid the long running integration tests
|
61 | 65 | # which are run elsewhere
|
62 |
| - - run: cargo test --lib --all-features --color=always -- --color=always |
63 |
| - - run: cargo test --doc --all-features --color=always -- --color=always |
| 66 | + - run: cargo test --lib ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --color=always -- --color=always |
| 67 | + - run: cargo test --doc ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --color=always -- --color=always |
64 | 68 |
|
65 | 69 | features_check:
|
66 | 70 | strategy:
|
@@ -181,16 +185,16 @@ jobs:
|
181 | 185 | - uses: actions/checkout@v4
|
182 | 186 | - run: cargo install cross
|
183 | 187 | - uses: Swatinem/rust-cache@v2
|
184 |
| - - run: cross test --lib --all-features --target i686-unknown-linux-gnu --color=always |
185 |
| - - run: cross test --doc --all-features --target i686-unknown-linux-gnu --color=always |
186 |
| - - run: cross test --lib --all-features --target i686-unknown-linux-musl --color=always |
187 |
| - - run: cross test --doc --all-features --target i686-unknown-linux-musl --color=always |
| 188 | + - run: cross test --lib ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --target i686-unknown-linux-gnu --color=always |
| 189 | + - run: cross test --doc ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --target i686-unknown-linux-gnu --color=always |
| 190 | + - run: cross test --lib ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --target i686-unknown-linux-musl --color=always |
| 191 | + - run: cross test --doc ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --target i686-unknown-linux-musl --color=always |
188 | 192 |
|
189 | 193 | check-docs:
|
190 | 194 | runs-on: ubuntu-latest
|
191 | 195 | steps:
|
192 | 196 | - uses: actions/checkout@v4
|
193 | 197 | - uses: dtolnay/rust-toolchain@nightly
|
194 |
| - - run: cargo +nightly doc --all-features --no-deps |
| 198 | + - run: cargo +nightly doc ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --no-deps |
195 | 199 | env:
|
196 | 200 | RUSTDOCFLAGS: "-D warnings --cfg docsrs"
|
0 commit comments