File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed
Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change 11name : Rust CI
22on :
33 push :
4- branches : [ master ]
4+ branches : [ main ]
55 pull_request :
6- branches : [ master ]
6+ branches : [ main ]
77jobs :
88 build :
99 runs-on : ubuntu-latest
4545 - name : Cargo check
4646 run : cargo check --features "${{ matrix.feature }}" --no-default-features
4747
48+ other_archs :
49+ # github actions does not support 32-bit or big endian systems directly, but
50+ # it does support QEMU. so we install qemu, then build and run the tests on
51+ # emulated systems. NOTE: you can also use this approach to test locally.
52+ runs-on : ubuntu-latest
53+ strategy :
54+ fail-fast : false
55+ matrix :
56+ arch : [powerpc-unknown-linux-gnu, i686-unknown-linux-gnu]
57+ steps :
58+ - uses : actions/checkout@v4
59+ - name : Install or use cached cross-rs/cross
60+ uses : baptiste0928/cargo-install@v2
61+ with :
62+ crate : cross
63+ - name : Cache Cargo Dependencies
64+ uses : Swatinem/rust-cache@v2
65+ with :
66+ cache-on-failure : true
67+ key : ${{ matrix.arch }}
68+ - name : Start Docker (required for cross-rs)
69+ run : sudo systemctl start docker
70+ - name : Cross-Run Tests using QEMU
71+ run : cross test --target ${{ matrix.arch }}
72+
4873 rustfmt :
4974 runs-on : ubuntu-latest
5075 steps :
You can’t perform that action at this time.
0 commit comments