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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: CI
on:
push:
pull_request:
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
# au (AUv2 hosting) is macOS-only. gui (mkapk-core/mkapk-host) is
# pure Rust with no platform-specific windowing dependencies, so
# it's safe in the blocking matrix on every OS - unlike the old
# mkgraphic-backed gui feature, which needed a separate
# non-blocking Linux/Windows probe job.
# sim-neon/sim-avx2 are added per-arch: GitHub's macos-latest
# runners are Apple Silicon (aarch64/NEON); windows-latest and
# ubuntu-latest are x86_64 (AVX2).
- os: macos-latest
features: realtime,simd,vst3,au,midi,gui,sim,sim-neon
- os: windows-latest
features: realtime,simd,vst3,midi,gui,sim,sim-avx2
- os: ubuntu-latest
features: realtime,simd,vst3,midi,gui,sim,sim-avx2
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Install Linux build dependencies
if: runner.os == 'Linux'
# libxcb1-dev etc.: `midi` pulls in mkmidilibrary, which depends on
# mkgraphic unconditionally (not just behind our own `gui` feature),
# and mkgraphic links against xcb on Linux.
run: |
sudo apt-get update
sudo apt-get install -y libasound2-dev libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
- name: Check formatting
run: cargo fmt --check
- name: Build
run: cargo build --features "${{ matrix.features }}"
- name: Run clippy
run: cargo clippy --features "${{ matrix.features }}" -- -D warnings
- name: Run tests
run: cargo test --workspace --features "${{ matrix.features }}"
- name: Build examples
run: cargo build --examples --features "${{ matrix.features }}"