-
Notifications
You must be signed in to change notification settings - Fork 35
46 lines (39 loc) · 1.14 KB
/
build-pr.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
name: Build Pull Request
on:
pull_request:
defaults:
run:
shell: bash
jobs:
build_plugin:
name: PR - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
- os: macos-latest
- os: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Prepare for JUCE
uses: surge-synthesizer/sst-githubactions/prepare-for-juce@main
with:
os: ${{ runner.os }}
gccversion: 9
- name: Build pull request version (macos)
if: runner.os == 'macOS'
run: |
STOCHAS_VERSION=0.0.0 ./scripts/mac-build.sh
- name: Build pull request version (linux)
if: runner.os == 'Linux'
run: |
STOCHAS_VERSION=0.0.0 ./scripts/linux-build.sh
- name: Build pull request version (windows)
if: runner.os == 'Windows'
run: |
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Debug -DSTOCHAS_VERSION=0.0.0
cmake --build ./build --config Debug --target stochas_Standalone --parallel 3