mirror of
https://github.com/chronotope/chrono.git
synced 2025-09-28 21:42:01 +00:00
consolidate no_std
This commit is contained in:
parent
2827c22762
commit
bbf5168f13
37
.github/workflows/test.yml
vendored
37
.github/workflows/test.yml
vendored
@ -64,47 +64,18 @@ jobs:
|
||||
- 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
|
||||
|
||||
no_std:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-latest, ubuntu-latest]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install rust with no_std toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
target: thumbv6m-none-eabi
|
||||
override: true
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
|
||||
- name: Build no_std lib
|
||||
run: cargo build --target thumbv6m-none-eabi --color=always
|
||||
working-directory: ./ci/core-test
|
||||
|
||||
intel_sgx:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
|
||||
target: [thumbv6m-none-eabi, x86_64-fortanix-unknown-sgx]
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install rust with fortanix sgx toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: nightly
|
||||
target: x86_64-fortanix-unknown-sgx
|
||||
override: true
|
||||
targets: ${{ matrix.target }}
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
|
||||
- name: Build sgx lib
|
||||
run: cargo build --target x86_64-fortanix-unknown-sgx --color=always
|
||||
- run: cargo build --target ${{ matrix.target }} --color=always
|
||||
working-directory: ./ci/core-test
|
||||
|
||||
wasm:
|
||||
|
@ -37,8 +37,6 @@ meaningful in the github actions feature matrix UI.
|
||||
test_wasm_unknown_no_wasmbind
|
||||
elif [[ ${WASM:-} == wasm_wasi ]]; then
|
||||
test_wasm_wasi
|
||||
elif [[ ${CORE:-} == no_std ]]; then
|
||||
test_core
|
||||
else
|
||||
test_regular UTC0
|
||||
fi
|
||||
@ -48,13 +46,6 @@ meaningful in the github actions feature matrix UI.
|
||||
fi
|
||||
}
|
||||
|
||||
test_core() {
|
||||
(
|
||||
cd ci/core-test
|
||||
runt cargo build --target thumbv6m-none-eabi --color=always
|
||||
)
|
||||
}
|
||||
|
||||
test_wasm() {
|
||||
if ! command -v node; then
|
||||
echo "node is not installed, can't run wasm-pack tests"
|
||||
|
Loading…
x
Reference in New Issue
Block a user