-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (50 loc) · 1.45 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
47
48
49
50
51
52
53
name: CI
on:
push:
branches:
master
pull_request:
branches:
master
env:
VST3_SDK_DIR: ${{ github.workspace }}/vst3sdk
jobs:
ci:
name: Build and run tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Check out VST3 SDK
uses: actions/checkout@v3
with:
repository: coupler-rs/vst3_pluginterfaces
path: vst3sdk/pluginterfaces
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install xcb dependencies (Linux)
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt update
sudo apt install libx11-xcb-dev libxcb-icccm4-dev libxcb-cursor-dev
- name: Install libclang (Linux)
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install llvm-dev libclang-dev clang
- name: Install libclang (Windows)
if: contains(matrix.os, 'windows')
run: |
choco install llvm
- name: Install libclang (macOS)
if: contains(matrix.os, 'macOS')
run: |
brew install llvm
echo "LIBCLANG_PATH=/usr/local/opt/llvm/lib/libclang.dylib" >> $GITHUB_ENV
- name: Build
run: cargo build --workspace
- name: Run tests
run: cargo test --workspace