Skip to content

Commit c1f09f3

Browse files
committed
Run cargo test for x86_64 targets
1 parent 4e919e8 commit c1f09f3

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,36 @@ jobs:
6868
- name: Clippy (xtask)
6969
run: cargo clippy --manifest-path ./xtask/Cargo.toml
7070

71+
test:
72+
strategy:
73+
fail-fast: false
74+
matrix:
75+
include:
76+
- { target: x86_64-pc-windows-msvc, os: windows-2019 }
77+
- { target: x86_64-pc-windows-msvc, os: windows-2022 }
78+
- { target: x86_64-apple-darwin, os: macos-11 }
79+
- { target: x86_64-apple-darwin, os: macos-12 }
80+
- { target: x86_64-unknown-linux-gnu, os: ubuntu-20.04 }
81+
- { target: x86_64-unknown-linux-gnu, os: ubuntu-22.04 }
82+
name: test (${{ matrix.target }})
83+
runs-on: ${{ matrix.os }}
84+
steps:
85+
- uses: actions/checkout@v3
86+
87+
- name: Read ./rust-toolchain
88+
id: read-rust-toolchain
89+
run: echo "toolchain=$(cat ./rust-toolchain)" >> "$GITHUB_OUTPUT"
90+
shell: bash
91+
92+
- name: Set up Rust
93+
uses: dtolnay/rust-toolchain@master
94+
with:
95+
toolchain: ${{ steps.read-rust-toolchain.outputs.toolchain }}
96+
targets: ${{ matrix.target }}
97+
98+
- name: Test (judge)
99+
run: cargo test --target ${{ matrix.target }}
100+
71101
cargo-deny:
72102
runs-on: ubuntu-22.04
73103
steps:

0 commit comments

Comments
 (0)