Skip to content

Commit 1d5bf32

Browse files
authored
zeroize: add cross tests to CI (#874)
Adds PPC32, which should be useful for checking that any optional ASM-based features will still work on platforms where ASM has not yet been stabilized.
1 parent 30b2c55 commit 1d5bf32

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/workflows/cmov.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,11 @@ jobs:
8989
rust: 1.60.0 # MSRV
9090
- target: aarch64-unknown-linux-gnu
9191
rust: stable
92-
9392
# PPC32
9493
- target: powerpc-unknown-linux-gnu
9594
rust: 1.60.0 # MSRV
9695
- target: powerpc-unknown-linux-gnu
9796
rust: stable
98-
9997
runs-on: ubuntu-latest
10098
steps:
10199
- uses: actions/checkout@v3

.github/workflows/zeroize.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,27 @@ jobs:
9292
- run: cargo test --target ${{ matrix.target }}
9393
- run: cargo test --target ${{ matrix.target }} --all-features
9494

95+
# Cross-compiled tests
96+
cross:
97+
strategy:
98+
matrix:
99+
include:
100+
# PPC32
101+
- target: powerpc-unknown-linux-gnu
102+
rust: 1.56.0 # MSRV
103+
- target: powerpc-unknown-linux-gnu
104+
rust: stable
105+
runs-on: ubuntu-latest
106+
steps:
107+
- uses: actions/checkout@v3
108+
- uses: RustCrypto/actions/cargo-cache@master
109+
- uses: dtolnay/rust-toolchain@master
110+
with:
111+
toolchain: ${{ matrix.rust }}
112+
targets: ${{ matrix.target }}
113+
- uses: RustCrypto/actions/cross-install@master
114+
- run: cross test --target ${{ matrix.target }}
115+
95116
# Feature-gated ARM64 SIMD register support (MSRV 1.59)
96117
aarch64:
97118
strategy:

0 commit comments

Comments
 (0)