CI: build `zeroize` on ARM embedded
Tests `no_std` linkage
@@ -17,6 +17,27 @@ env:
RUSTFLAGS: "-Dwarnings"
jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ rust:
+ - 1.47.0 # MSRV
+ - stable
+ target:
+ - armv7a-none-eabi
+ - thumbv7em-none-eabi
+ - wasm32-unknown-unknown
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions-rs/toolchain@v1
+ with:
+ toolchain: ${{ matrix.rust }}
+ target: ${{ matrix.target }}
+ override: true
+ profile: minimal
+ - run: cargo build --no-default-features --release --target ${{ matrix.target }}
+
test:
strategy:
matrix:
@@ -25,7 +46,7 @@ jobs:
- macos-latest
- windows-latest
toolchain:
- - 1.47.0
+ - 1.47.0 # MSRV
- stable
runs-on: ${{ matrix.platform }}
steps:
@@ -37,15 +58,3 @@ jobs:
profile: minimal
- run: cargo test --release
- run: cargo test --release --all-features
-
- wasm:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- target: wasm32-unknown-unknown
- override: true
- profile: minimal
- - run: cargo build --target wasm32-unknown-unknown
