Skip to content

Commit a511710

Browse files
authored
zeroize: add CI for 32-bit environments (#775)
Uses a 32-bit Linux target
1 parent fdad462 commit a511710

File tree

1 file changed

+38
-9
lines changed

1 file changed

+38
-9
lines changed

.github/workflows/zeroize.yml

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,24 +50,53 @@ jobs:
5050
test:
5151
strategy:
5252
matrix:
53-
platform:
54-
- ubuntu-latest
55-
- macos-latest
56-
- windows-latest
57-
toolchain:
58-
- 1.51.0 # MSRV
59-
- stable
53+
include:
54+
# 32-bit Linux
55+
- target: i686-unknown-linux-gnu
56+
platform: ubuntu-latest
57+
rust: 1.51.0 # MSRV
58+
deps: sudo apt update && sudo apt install gcc-multilib
59+
- target: i686-unknown-linux-gnu
60+
platform: ubuntu-latest
61+
rust: stable
62+
deps: sudo apt update && sudo apt install gcc-multilib
63+
64+
# 64-bit Linux
65+
- target: x86_64-unknown-linux-gnu
66+
platform: ubuntu-latest
67+
rust: 1.51.0 # MSRV
68+
- target: x86_64-unknown-linux-gnu
69+
platform: ubuntu-latest
70+
rust: stable
71+
72+
# 64-bit macOS x86_64
73+
- target: x86_64-apple-darwin
74+
platform: macos-latest
75+
rust: 1.51.0 # MSRV
76+
- target: x86_64-apple-darwin
77+
platform: macos-latest
78+
rust: stable
79+
80+
# 64-bit Windows
81+
- target: x86_64-pc-windows-msvc
82+
platform: windows-latest
83+
rust: 1.51.0 # MSRV
84+
- target: x86_64-pc-windows-msvc
85+
platform: windows-latest
86+
rust: stable
6087
runs-on: ${{ matrix.platform }}
6188
steps:
6289
- uses: actions/checkout@v2
6390
- uses: RustCrypto/actions/cargo-cache@master
6491
- uses: actions-rs/toolchain@v1
6592
with:
66-
toolchain: ${{ matrix.toolchain }}
67-
override: true
93+
toolchain: ${{ matrix.rust }}
94+
target: ${{ matrix.target }}
6895
profile: minimal
96+
override: true
6997
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
7098
- run: rm ../Cargo.toml
99+
- run: ${{ matrix.deps }}
71100
- run: cargo test
72101
- run: cargo test --features alloc,derive,std
73102

0 commit comments

Comments
 (0)