-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 914 Bytes
/
build.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
name: Rust CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_and_test:
strategy:
matrix:
os:
- ubuntu-latest
- macos-13 # x86_64
- macos-14 # aarch64 (ARM)
- windows-latest
runs-on: ${{ matrix.os }}
name: Build and test
steps:
- uses: actions/checkout@v4
- uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: stable
default: true
- name: Install Ubuntu dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: export DEBIAN_FRONTEND=noninteractive && sudo apt update && sudo apt install -y librust-alsa-sys-dev
- name: Add fake empty dependency
shell: bash
run: crates/fake-glass.sh
- run: cargo build --release
- run: cargo test