-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1387 from pitdicker/merge_0.4.x
Merge 0.4.x
- Loading branch information
Showing
29 changed files
with
1,502 additions
and
475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
name: All Tests and Builds | ||
|
||
env: | ||
# It's really `--all-features`, but not adding the mutually exclusive features from rkyv | ||
ALL_NON_EXCLUSIVE_FEATURES: --features "default unstable-locales rkyv-32 rkyv-validation serde arbitrary" | ||
|
||
on: | ||
push: | ||
branches: [main, 0.4.x] | ||
|
@@ -16,10 +20,10 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo test --all-features --color=always -- --color=always | ||
- run: cargo test ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --color=always -- --color=always | ||
|
||
# later this may be able to be included with the below | ||
# kept separate for now as the following don't compile on 1.57 | ||
# kept separate for now as the following don't compile on 1.60 | ||
# * arbitrary (requires 1.63 as of v1.3.0) | ||
rust_msrv: | ||
strategy: | ||
|
@@ -30,7 +34,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.57 | ||
toolchain: "1.61.0" | ||
- uses: Swatinem/rust-cache@v2 | ||
# run --lib and --doc to avoid the long running integration tests | ||
# which are run elsewhere | ||
|
@@ -59,8 +63,8 @@ jobs: | |
- run: cargo check --manifest-path fuzz/Cargo.toml --all-targets | ||
# run --lib and --doc to avoid the long running integration tests | ||
# which are run elsewhere | ||
- run: cargo test --lib --all-features --color=always -- --color=always | ||
- run: cargo test --doc --all-features --color=always -- --color=always | ||
- run: cargo test --lib ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --color=always -- --color=always | ||
- run: cargo test --doc ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --color=always -- --color=always | ||
|
||
features_check: | ||
strategy: | ||
|
@@ -73,8 +77,8 @@ jobs: | |
- uses: taiki-e/install-action@cargo-hack | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: | | ||
cargo hack check --feature-powerset --optional-deps serde,rkyv \ | ||
--skip __internal_bench,iana-time-zone,pure-rust-locales,libc,winapi \ | ||
cargo hack check --feature-powerset --optional-deps serde \ | ||
--skip __internal_bench,iana-time-zone,pure-rust-locales,libc,winapi,rkyv-16,rkyv-64,rkyv-validation \ | ||
--all-targets | ||
# run using `bash` on all platforms for consistent | ||
# line-continuation marks | ||
|
@@ -85,6 +89,7 @@ jobs: | |
- run: cargo test --no-default-features --features=alloc | ||
- run: cargo test --no-default-features --features=unstable-locales | ||
- run: cargo test --no-default-features --features=alloc,unstable-locales | ||
- run: cargo test --no-default-features --features=now | ||
|
||
no_std: | ||
strategy: | ||
|
@@ -118,8 +123,6 @@ jobs: | |
with: | ||
targets: ${{ matrix.target }} | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
node-version: "12" | ||
- run: cargo build --target ${{ matrix.target }} --color=always | ||
|
||
test_wasm: | ||
|
@@ -133,7 +136,7 @@ jobs: | |
with: | ||
targets: wasm32-unknown-unknown | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: actions/setup-node@v3 | ||
- uses: actions/setup-node@v4 | ||
- uses: jetli/[email protected] | ||
# The `TZ` and `NOW` variables are used to compare the results inside the WASM environment | ||
# with the host system. | ||
|
@@ -181,16 +184,16 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- run: cargo install cross | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cross test --lib --all-features --target i686-unknown-linux-gnu --color=always | ||
- run: cross test --doc --all-features --target i686-unknown-linux-gnu --color=always | ||
- run: cross test --lib --all-features --target i686-unknown-linux-musl --color=always | ||
- run: cross test --doc --all-features --target i686-unknown-linux-musl --color=always | ||
- run: cross test --lib ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --target i686-unknown-linux-gnu --color=always | ||
- run: cross test --doc ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --target i686-unknown-linux-gnu --color=always | ||
- run: cross test --lib ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --target i686-unknown-linux-musl --color=always | ||
- run: cross test --doc ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --target i686-unknown-linux-musl --color=always | ||
|
||
check-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
- run: cargo +nightly doc --all-features --no-deps | ||
- run: cargo +nightly doc ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --no-deps | ||
env: | ||
RUSTDOCFLAGS: "-D warnings --cfg docsrs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.