Use better preprocessor defining #11
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: rotor | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [windows-latest, macos-13] | |
env: | |
BUILD_TYPE: Release | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
- name: Clone JUCE | |
uses: actions/checkout@v2 | |
with: | |
repository: juce-framework/JUCE | |
ref: 2f980209cc4091a4490bb1bafc5d530f16834e58 | |
path: ${{runner.workspace}}/rotor/JUCE | |
# JUCE | |
- name: Configure JUCE | |
working-directory: ${{runner.workspace}}/rotor/JUCE | |
run: cmake -B bin . | |
- name: Build JUCE | |
working-directory: ${{runner.workspace}}/rotor/JUCE | |
run: cmake --build bin | |
# Rotor | |
- name: Precompile Rotor | |
working-directory: ${{runner.workspace}}/rotor | |
run: chmod +x ./scripts/precompile.sh && ./scripts/precompile.sh | |
- name: Configure Rotor | |
working-directory: ${{runner.workspace}}/rotor | |
run: cmake -B bin . | |
- name: Build Rotor | |
working-directory: ${{runner.workspace}}/rotor | |
run: cmake --build bin --config ${{ env.BUILD_TYPE }} --target Rotor_All | |
# Windows | |
- name: Zip Artifact (Windows) | |
if: runner.os == 'Windows' | |
run: Compress-Archive -Path bin/Rotor_artefacts/Release/VST3/Rotor.vst3/Contents/x86_64-win/Rotor.vst3 -Destination rotor.zip | |
- name: Upload Artifact (Windows) | |
if: runner.os == 'Windows' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: rotor-windows | |
path: rotor.zip | |
# MacOS | |
- name: Zip Artifact (MacOS) | |
if: runner.os == 'macOS' | |
run: zip -r rotor.zip bin/Rotor_artefacts/VST3/Rotor.vst3 bin/Rotor_artefacts/AU/Rotor.component | |
- name: Upload Artifact (MacOS) | |
if: runner.os == 'macOS' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: rotor-macos | |
path: rotor.zip |