Skip to content

Commit dd7cd5d

Browse files
committed
add 32bit and musl to the CI
1 parent 55d1feb commit dd7cd5d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,36 @@ jobs:
302302
- name: Run tests
303303
run: sudo -ubuilder cargo test --workspace --all-targets --release
304304

305+
build-and-test-32bit:
306+
runs-on: ubuntu-latest
307+
308+
steps:
309+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
310+
311+
- name: Install 32-bit rust
312+
run: |
313+
rustup target add i686-unknown-linux-gnu
314+
315+
- name: Install dependencies
316+
run: |
317+
sudo dpkg --add-architecture i386
318+
sudo apt update
319+
sudo apt install libpam0g-dev:i386 gcc-multilib
320+
321+
- name: Rust Cache
322+
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
323+
with:
324+
shared-key: "stable"
325+
326+
- name: Register rust problem matcher
327+
run: echo "::add-matcher::.github/problem-matchers/rust.json"
328+
329+
- name: Build
330+
run: cargo build --target i686-unknown-linux-gnu --workspace --all-targets --release
331+
332+
- name: Run tests
333+
run: cargo test --target i686-unknown-linux-gnu --workspace --all-targets --release
334+
305335
miri:
306336
needs: build-and-test
307337
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)