-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (47 loc) · 1.4 KB
/
test32bit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
on:
push:
branches: [main, dev]
pull_request:
name: 32 bit CI
jobs:
test-32bit:
name: Run tests (32 bit)
runs-on: ${{ matrix.os }}
#container:
# image: ubuntu:20.10
strategy:
matrix:
os: [ubuntu-latest]
rust:
- stable
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@cargo-hack
- name: Install Linux tooling for 32 bit builds
run: |
sudo apt-get update -y
sudo apt-get -f install gcc-multilib
- name: Install rust tooling for 32 bit builds
run: |
rustup target install i686-unknown-linux-gnu
- name: cargo check
run: |
cargo hack check --all-targets --target=i686-unknown-linux-gnu --feature-powerset
- name: cargo tests
run: |
cargo hack test --target=i686-unknown-linux-gnu --feature-powerset
- name: cargo doc tests
run: |
cargo hack test --doc --target=i686-unknown-linux-gnu --feature-powerset