This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |