|
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 "default unstable-locales rkyv-64 rkyv-validation rustc-serialize serde arbitrary" |
| 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.60
|
|
61 | 65 | - run: cargo check --manifest-path fuzz/Cargo.toml --all-targets
|
62 | 66 | # run --lib and --doc to avoid the long running integration tests
|
63 | 67 | # which are run elsewhere
|
64 |
| - - run: cargo test --lib --all-features --color=always -- --color=always |
65 |
| - - run: cargo test --doc --all-features --color=always -- --color=always |
| 68 | + - run: cargo test --lib ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --color=always -- --color=always |
| 69 | + - run: cargo test --doc ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --color=always -- --color=always |
66 | 70 |
|
67 | 71 | features_check:
|
68 | 72 | strategy:
|
|
76 | 80 | - uses: Swatinem/rust-cache@v2
|
77 | 81 | - run: |
|
78 | 82 | cargo hack check --feature-powerset --optional-deps serde \
|
79 |
| - --skip __internal_bench,iana-time-zone,pure-rust-locales,libc,winapi \ |
| 83 | + --skip __internal_bench,iana-time-zone,pure-rust-locales,libc,winapi,rkyv-16,rkyv-32,rkyv-validation \ |
80 | 84 | --all-targets
|
81 | 85 | # run using `bash` on all platforms for consistent
|
82 | 86 | # line-continuation marks
|
@@ -182,16 +186,16 @@ jobs:
|
182 | 186 | - uses: actions/checkout@v4
|
183 | 187 | - run: cargo install cross
|
184 | 188 | - uses: Swatinem/rust-cache@v2
|
185 |
| - - run: cross test --lib --all-features --target i686-unknown-linux-gnu --color=always |
186 |
| - - run: cross test --doc --all-features --target i686-unknown-linux-gnu --color=always |
187 |
| - - run: cross test --lib --all-features --target i686-unknown-linux-musl --color=always |
188 |
| - - run: cross test --doc --all-features --target i686-unknown-linux-musl --color=always |
| 189 | + - run: cross test --lib ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --target i686-unknown-linux-gnu --color=always |
| 190 | + - run: cross test --doc ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --target i686-unknown-linux-gnu --color=always |
| 191 | + - run: cross test --lib ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --target i686-unknown-linux-musl --color=always |
| 192 | + - run: cross test --doc ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --target i686-unknown-linux-musl --color=always |
189 | 193 |
|
190 | 194 | check-docs:
|
191 | 195 | runs-on: ubuntu-latest
|
192 | 196 | steps:
|
193 | 197 | - uses: actions/checkout@v4
|
194 | 198 | - uses: dtolnay/rust-toolchain@nightly
|
195 |
| - - run: cargo +nightly doc --all-features --no-deps |
| 199 | + - run: cargo +nightly doc ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --no-deps |
196 | 200 | env:
|
197 | 201 | RUSTDOCFLAGS: "-D warnings --cfg docsrs"
|
0 commit comments