File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -20,33 +20,17 @@ jobs:
2020 run_tests :
2121 name : Run Rust tests
2222 runs-on : ubuntu-latest
23- env :
24- NATIVE_TARGET : ${{ matrix.target == 'x86_64-unknown-linux-gnu' }}
2523 strategy :
2624 fail-fast : false
27- matrix :
28- target : [x86_64-unknown-linux-gnu, armv7-unknown-linux-gnueabihf, arm-unknown-linux-gnueabihf]
2925 steps :
3026 - uses : actions/checkout@v3
3127
3228 - uses : dtolnay/rust-toolchain@stable
3329
34- - name : Install cross
35- run : cargo install cross --git https://github.com/cross-rs/cross
36- if : env.NATIVE_TARGET == 'false'
37-
3830 - uses : Swatinem/rust-cache@v2
3931
40- - name : Set test runner
41- run : |
42- if ${NATIVE_TARGET} == true; then
43- echo "test_runner=cargo" >> $GITHUB_ENV
44- else
45- echo "test_runner=cross" >> $GITHUB_ENV
46- fi
47-
4832 - name : Run tests
49- run : ${{ env.test_runner }} test --no-fail-fast --verbose --target ${{ matrix.target }} -- --nocapture
33+ run : cargo test --no-fail-fast --verbose --target x86_64-unknown-linux-gnu -- --nocapture
5034
5135 lint :
5236 name : Check Rust code with rustfmt and clippy
You can’t perform that action at this time.
0 commit comments