-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (50 loc) · 1.74 KB
/
c-cpp.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
name: Build Example Plugins
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: false
matrix:
include:
- name: Linux
os: ubuntu-22.04
- name: macOS
os: macos-latest
- name: Windows
os: windows-latest
steps:
- uses: actions/checkout@v4
# This block can be removed once 15.1 is default (JUCE requires it when building on macOS 14)
- name: Use latest Xcode on system (macOS)
if: ${{ matrix.name == 'macOS' }}
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Configure CMake
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_BUILD_TYPE=Release
-S ${{ github.workspace }}
- name: Build
# Build your program with the given configuration.
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config Release
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name}}_Plugins
path: |
**/*.gmpi
**/*.vst3