-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.15 KB
/
test.yml
File metadata and controls
40 lines (40 loc) · 1.15 KB
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
name: Testing
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- os: macos-15-intel
target: x86_64-apple-darwin
- os: macos-latest
target: aarch64-apple-darwin
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: ubuntu-latest
target: i686-unknown-linux-gnu
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
- os: windows-latest
target: x86_64-pc-windows-msvc
- os: windows-latest
target: i686-pc-windows-msvc
runs-on: ${{ matrix.os }}
steps:
- name: Install rust
uses: dtolnay/rust-toolchain@1.88.0
with:
target: ${{ matrix.target }}
- name: Install linker
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install musl-tools gcc-multilib
- name: Checkout
uses: actions/checkout@v4
- name: Test
run: cargo test --target ${{ matrix.target }}