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