-
Notifications
You must be signed in to change notification settings - Fork 58
46 lines (44 loc) · 1.31 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
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
merge_group:
jobs:
test:
strategy:
matrix:
include:
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
# - os: ubuntu-22.04
# target: x86_64-unknown-linux-musl
# - os: ubuntu-22.04
# target: aarch64-unknown-linux-gnu
# - os: ubuntu-22.04
# target: aarch64-unknown-linux-musl
- os: macos-14
target: x86_64-apple-darwin
- os: macos-14
target: aarch64-apple-darwin
- os: windows-2022
target: x86_64-pc-windows-msvc
- os: windows-2022
target: x86_64-pc-windows-gnu
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
with:
prefix-key: ${{ matrix.os }}-${{ matrix.target }}-rust
cache-targets: true
cache-on-failure: false
- name: Install native dependencies
if: runner.os == 'Linux'
run: sudo apt update -y && sudo apt install -y libasound2-dev binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu
- run: cargo test --verbose --target ${{ matrix.target }}