-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 1.11 KB
/
ci.yml
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
name: Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
name: "${{ matrix.platform.os }} ${{ matrix.platform.target }}"
strategy:
fail-fast: false
matrix:
platform:
- { os: ubuntu-latest, target: x86_64-unknown-linux-gnu }
- { os: macos-latest , target: x86_64-apple-darwin }
- { os: macos-latest , target: aarch64-apple-darwin }
runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v4
- run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh
chmod a+x rustup.sh
./rustup.sh -y
- run: rustc --print target-list
- run: rustup target add ${{ matrix.platform.target }}
- run: rustc --target=${{ matrix.platform.target }} --print target-cpus
- run: sudo apt-get update && sudo apt-get install libasound2-dev
if: ${{ matrix.platform.os == 'ubuntu-latest' }}
- run: cargo check --locked --target ${{ matrix.platform.target }}
- run: cargo test --locked --target ${{ matrix.platform.target }}