Add artifact uploading #5
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: "Preparation" | |
uses: actions/checkout@v2 | |
- name: "1/7: Clone (JUCE)" | |
uses: actions/checkout@v2 | |
with: | |
repository: juce-framework/JUCE | |
ref: 2f980209cc4091a4490bb1bafc5d530f16834e58 | |
path: ${{runner.workspace}}/rotor/JUCE | |
# JUCE | |
- name: "2/7: Preprocessor Definitions" | |
working-directory: ${{runner.workspace}}/rotor/JUCE | |
run: perl -i -pe "s/#define JUCE_MODAL_LOOPS_PERMITTED.*/#define JUCE_MODAL_LOOPS_PERMITTED 1/" modules/juce_core/system/juce_PlatformDefs.h | |
- name: "3/7: Configuration (JUCE)" | |
working-directory: ${{runner.workspace}}/rotor/JUCE | |
run: cmake -B bin . | |
- name: "4/7: Build (JUCE)" | |
working-directory: ${{runner.workspace}}/rotor/JUCE | |
run: cmake --build bin | |
# Rotor | |
- name: "5/7: Precompilation (Rotor)" | |
working-directory: ${{runner.workspace}}/rotor | |
run: chmod +x ./scripts/precompile.sh && ./scripts/precompile.sh | |
- name: "6/7: Configuration (Rotor)" | |
working-directory: ${{runner.workspace}}/rotor | |
run: cmake -B bin . | |
- name: "7/7: Build (Rotor)" | |
working-directory: ${{runner.workspace}}/rotor | |
run: cmake --build bin --config ${{ env.BUILD_TYPE }} --target Rotor_All | |
# Uploading artifacts | |
- name: Upload VST3 Artifact (Windows) | |
if: runner.os == 'Windows' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Rotor.vst3 (Windows) | |
path: "bin/Rotor_artefacts/Release/VST3/Rotor.vst3/Contents/x86_64-win/Rotor.vst3" | |
- name: Upload VST3 Artifact (MacOS) | |
if: runner.os == 'macOS' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Rotor.vst3 (MacOS) | |
path: "bin/Rotor_artefacts/VST3/Rotor.vst3" | |
- name: Upload AU Artifact (MacOS) | |
if: runner.os == 'macOS' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Rotor.component (MacOS) | |
path: "bin/Rotor_artefacts/AU/Rotor.component" |