-
-
Notifications
You must be signed in to change notification settings - Fork 23
115 lines (96 loc) · 3.23 KB
/
cmake.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: CI
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
repository_dispatch:
types: [add_ons_push]
workflow_dispatch:
jobs:
build_and_test:
name: Test plugin on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # show all errors for each platform (vs. cancel jobs on error)
matrix:
include:
- os: ubuntu-22.04
cmake_args: "-DCMAKE_CXX_COMPILER=g++-11"
- os: windows-2022
cmake_gen: -G"Ninja Multi-Config"
cmake_args: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl
- os: macos-13
cmake_args: "-DCMAKE_BUILD_TYPE=Release"
steps:
- name: Install Linux Deps
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt install libasound2-dev libx11-dev libxcomposite-dev libxcursor-dev libxext-dev libxinerama-dev libxrandr-dev libxrender-dev libfreetype6-dev libglu1-mesa-dev libjack-jackd2-dev
- name: Set Xcode version
if: runner.os == 'MacOS'
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.2'
- name: Install Ninja
if: runner.os == 'Windows'
uses: seanmiddleditch/gha-setup-ninja@master
- name: Add msbuild to PATH
if: runner.os == 'Windows'
uses: microsoft/setup-msbuild@v2
- name: Setup MSVC devcmd
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Checkout add-ons
uses: actions/checkout@v2
if: github.event_name != 'pull_request'
with:
ref: main
repository: Chowdhury-DSP/BYOD-add-ons
path: modules/BYOD-add-ons
token: ${{ secrets.OUR_GITHUB_PAT }}
- name: Checkout Jai
uses: actions/checkout@v2
if: github.actor == 'jatinchowdhury18'
with:
ref: main
repository: Chowdhury-DSP/jai-minimal
token: ${{ secrets.OUR_GITHUB_PAT }}
path: modules/jai
- name: Configure
env:
CONFIGURE_ADD_ONS_FLAG: "${{ github.event_name != 'pull_request' && '-DBYOD_BUILD_ADD_ON_MODULES=ON' || '' }}"
shell: bash
run: cmake -Bbuild $CONFIGURE_ADD_ONS_FLAG ${{ matrix.cmake_args }} ${{ matrix.cmake_gen }}
- name: Build
shell: bash
run: cmake --build build --config Release --parallel 4 --target BYOD_Standalone BYOD_VST3 BYOD_CLAP
- name: Unit Tests
if: runner.os == 'Linux' || runner.os == 'MacOS'
run: |
cmake --build build --config Release --parallel 4 --target BYOD_headless
build/BYOD --unit-tests --all
- name: Run auval
if: runner.os == 'MacOS'
run: |
sudo cp -R -f "build/BYOD_artefacts/Release/AU/BYOD.component" "/Library/Audio/Plug-Ins/Components/BYOD.component"
killall -9 AudioComponentRegistrar
auval -a
auval -strict -v aufx Dqu0 Chow
- name: Validate
if: runner.os == 'Windows' # || runner.os == 'MacOS'
run: bash scripts/validate.sh
# - name: Setup debug session
# if: always()
# uses: mxschmitt/action-tmate@v3