Skip to content

Commit 7c0b616

Browse files
authored
Add CI for 32 bit Linux builds (#232)
1 parent 7458d85 commit 7c0b616

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

.github/workflows/test32bit.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
on:
2+
push:
3+
branches: [main, dev]
4+
pull_request:
5+
6+
name: 32-bit CI
7+
8+
jobs:
9+
run-tests:
10+
runs-on: ${{ matrix.os }}
11+
#container:
12+
# image: ubuntu:20.10
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest]
16+
rust:
17+
- stable
18+
steps:
19+
- name: Cancel Previous Runs
20+
uses: styfle/[email protected]
21+
with:
22+
access_token: ${{ secrets.GITHUB_TOKEN }}
23+
- uses: actions/checkout@v2
24+
with:
25+
token: ${{ secrets.GITHUB_TOKEN }}
26+
submodules: recursive
27+
- uses: actions-rs/toolchain@v1
28+
with:
29+
toolchain: ${{ matrix.rust }}
30+
override: true
31+
- uses: Swatinem/rust-cache@v1
32+
- name: Install Linux tooling for 32 bit builds
33+
run: |
34+
sudo apt-get update -y
35+
sudo apt-get -f install gcc-multilib
36+
- name: Install rust tooling for 32 bit builds
37+
run: |
38+
rustup target install i686-unknown-linux-gnu
39+
- name: cargo tests
40+
run: |
41+
cargo test --target=i686-unknown-linux-gnu
42+
- name: cargo tests (all feaures)
43+
run: |
44+
cargo test --target=i686-unknown-linux-gnu --all-features

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
branches: [main, dev]
44
pull_request:
55

6-
name: CI
6+
name: 64-bit CI
77

88
jobs:
99
run-tests:

0 commit comments

Comments
 (0)