-
Notifications
You must be signed in to change notification settings - Fork 24
44 lines (35 loc) · 1.23 KB
/
examples.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
name: Examples
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
env:
EXAMPLE_TARGETS: "ForwardingTestPlugin_Standalone ModalSpringReverb_Standalone SimpleEQ_Standalone StatefulPlugin_Standalone ExampleCompressor_Standalone"
jobs:
build_examples:
name: "Build Example ${{ matrix.target }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # show all errors for each platform (vs. cancel jobs on error)
matrix:
os: [ubuntu-latest, windows-2019, macos-latest]
steps:
- name: Install Linux Deps
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt install libasound2-dev libcurl4-openssl-dev libx11-dev libxinerama-dev libxext-dev libfreetype6-dev libwebkit2gtk-4.0-dev libglu1-mesa-dev libsamplerate-dev
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Checkout code
uses: actions/checkout@v2
- name: Configure
shell: bash
run: cmake -Bbuild -DCHOWDSP_ENABLE_EXAMPLES=ON
- name: "Build Example: ${{ matrix.target }}"
shell: bash
run: cmake --build build --parallel 4 --target $EXAMPLE_TARGETS