Add relevant `--target` to `cargo test` in CI

This commit is contained in:
Chris Eager 2022-05-27 11:55:13 -07:00 committed by Anthony Ramine
parent 4d1b7fc816
commit bbe8cd1b9e
1 changed files with 2 additions and 2 deletions

View File

@ -166,10 +166,10 @@ jobs:
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV
- if: "startsWith(matrix.os, 'windows') && !contains(matrix.target, 'ios')" - if: "startsWith(matrix.os, 'windows') && !contains(matrix.target, 'ios')"
# CI's Windows doesn't have require root certs # CI's Windows doesn't have require root certs
run: cargo test --workspace --exclude tokio-boring --exclude hyper-boring run: cargo test --workspace --target ${{ matrix.target }} --exclude tokio-boring --exclude hyper-boring
name: Run tests (Windows) name: Run tests (Windows)
- if: "!startsWith(matrix.os, 'windows') && !contains(matrix.target, 'ios')" - if: "!startsWith(matrix.os, 'windows') && !contains(matrix.target, 'ios')"
run: cargo test run: cargo test --target ${{ matrix.target }}
name: Run tests (not Windows) name: Run tests (not Windows)
- if: "contains(matrix.target, 'ios')" - if: "contains(matrix.target, 'ios')"
# It's... theoretically possible to run tests on iPhone Simulator, # It's... theoretically possible to run tests on iPhone Simulator,