-
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.
- Loading branch information
Showing
37 changed files
with
4,165 additions
and
3,110 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,8 +28,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo test --lib --all-features --color=always -- --color=always | ||
- run: cargo test --doc --all-features --color=always -- --color=always | ||
- run: cargo test --all-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.56.1 | ||
|
@@ -94,8 +93,7 @@ jobs: | |
# run using `bash` on all platforms for consistent | ||
# line-continuation marks | ||
shell: bash | ||
- run: cargo test --lib --no-default-features | ||
- run: cargo test --doc --no-default-features | ||
- run: cargo test --no-default-features | ||
|
||
no_std: | ||
strategy: | ||
|
@@ -118,7 +116,6 @@ jobs: | |
os: [ubuntu-latest] | ||
target: | ||
[ | ||
wasm32-unknown-unknown, | ||
wasm32-wasi, | ||
wasm32-unknown-emscripten, | ||
aarch64-apple-ios, | ||
|
@@ -131,19 +128,11 @@ jobs: | |
with: | ||
targets: ${{ matrix.target }} | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "12" | ||
- run: | | ||
set -euxo pipefail | ||
export RUST_BACKTRACE=1 | ||
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf \ | ||
| bash --noprofile --norc | ||
wasm-pack --version | ||
shell: bash | ||
- run: cargo build --target ${{ matrix.target }} --color=always | ||
|
||
features_check_wasm: | ||
test_wasm: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
|
@@ -155,10 +144,11 @@ jobs: | |
targets: wasm32-unknown-unknown | ||
- uses: taiki-e/install-action@cargo-hack | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: | | ||
cargo hack check --feature-powerset --optional-deps serde,rkyv \ | ||
--skip default --skip __internal_bench --skip __doctest \ | ||
--skip iana-time-zone --skip pure-rust-locales | ||
- uses: actions/setup-node@v3 | ||
- uses: jetli/[email protected] | ||
# The `TZ` and `NOW` variables are used to compare the results inside the WASM environment | ||
# with the host system. | ||
- run: TZ="$(date +%z)" NOW="$(date +%s)" wasm-pack test --node -- --features wasmbind | ||
|
||
cross-targets: | ||
strategy: | ||
|
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 |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
name = "core-test" | ||
version = "0.1.0" | ||
authors = [ | ||
"Kang Seonghoon <[email protected]>", | ||
"Brandon W Maister <[email protected]>", | ||
"Kang Seonghoon <[email protected]>", | ||
"Brandon W Maister <[email protected]>", | ||
] | ||
edition = "2018" | ||
|
||
[dependencies] | ||
chrono = { path = "../..", default-features = false, features = ["serde"] } | ||
|
||
[features] | ||
alloc = ["chrono/alloc"] | ||
alloc = ["chrono/alloc"] |
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.