Skip to content

Commit dfc92a8

Browse files
authored
Merge pull request #8 from ilmai/build-action
Create build.yml
2 parents 077c4d2 + f8f0e01 commit dfc92a8

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
VST3_SDK_DIR: ${{ github.workspace }}/vst3sdk
12+
13+
jobs:
14+
build:
15+
strategy:
16+
matrix:
17+
os: [macos-latest, ubuntu-latest, windows-latest]
18+
19+
runs-on: ${{ matrix.os }}
20+
21+
steps:
22+
- name: Install dependencies (Ubuntu)
23+
if: startsWith(matrix.os, 'ubuntu')
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get install -y libasound2-dev libgl-dev libjack-dev libxcb1-dev libxcb-icccm4-dev libxcursor-dev libxkbcommon-dev libxcb-shape0-dev libxcb-xfixes0-dev libx11-xcb-dev libxcb-dri2-0-dev libpango1.0-dev libatk1.0-dev libgdk-pixbuf-2.0-dev libgtk-3-dev libgtkmm-3.0-dev libxkbcommon-x11-dev
27+
28+
- uses: actions/checkout@v5
29+
30+
- name: Clone vst3sdk
31+
uses: actions/checkout@v5
32+
with:
33+
repository: steinbergmedia/vst3sdk
34+
path: vst3sdk
35+
36+
- name: Init vst3sdk submodules
37+
run: |
38+
cd vst3sdk
39+
git submodule update --init base cmake pluginterfaces public.sdk
40+
41+
- name: Build
42+
run: cargo build --verbose
43+
- name: Run tests
44+
run: cargo test --verbose

0 commit comments

Comments
 (0)