-
Notifications
You must be signed in to change notification settings - Fork 33
91 lines (79 loc) · 2.61 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Build Pull Request
on:
pull_request:
defaults:
run:
shell: bash
jobs:
build_plugin:
name: PR - ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- name: "windows msvc"
os: windows-latest
target: scxt_plugin_Standalone
cmakeConfig: -A x64
runTests: false
- name: "windows clang"
os: windows-latest
target: scxt_plugin_Standalone
cmakeConfig: -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang
runTests: false
- name: "mac standalone"
os: macos-latest
target: scxt_plugin_Standalone
runTests: true
- name: "ubuntu standalone"
os: ubuntu-latest
target: scxt_plugin_Standalone
runTests: true
- name: "windows clap first"
os: windows-latest
target: scxt_clapfirst_all
cmakeConfig: -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DSCXT_JUCE_CLASSIC_STYLE=FALSE
runTests: false
- name: "mac clap first"
os: macos-latest
target: scxt_clapfirst_all
cmakeConfig: -DSCXT_JUCE_CLASSIC_STYLE=FALSE
runTests: false
- name: "ubuntu clap first"
os: ubuntu-latest
target: scxt_clapfirst_all
cmakeConfig: -DSCXT_JUCE_CLASSIC_STYLE=FALSE
runTests: false
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 }}
- name: Build pull request version
run: |
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Debug ${{ matrix.cmakeConfig }}
cmake --build ./build --config Debug --target ${{ matrix.target }} --parallel 3
- name: Run Tests
if: ${{ matrix.runTests }}
run: |
cmake --build build --config Debug --target scxt-test --parallel 4
./build/tests/scxt-test
build_plugin_lindoc:
name: PR - U18 Docker
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build in Docker
uses: surge-synthesizer/sst-githubactions/cmake-in-docker@main
with:
username: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}
cmakeArgs: -DCMAKE_BUILD_TYPE=Debug -GNinja
target: scxt_plugin_Standalone