-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set up CI workflow for building and testing on all platforms
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
master | ||
pull_request: | ||
branches: | ||
master | ||
|
||
env: | ||
VST3_SDK_DIR: 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 libclang | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install llvm-dev libclang-dev clang | ||
- name: Build | ||
run: cargo build --workspace --examples | ||
- name: Run tests | ||
run: cargo test --workspace |