-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (62 loc) · 2.08 KB
/
cmake.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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
# Windows
- name: Zip Artifact
if: runner.os == 'Windows'
run: zip -r rotor.zip bin/Rotor_artefacts/Release/VST3/Rotor.vst3/Contents/x86_64-win/Rotor.vst3
- name: Upload
if: runner.os == 'Windows'
uses: actions/upload-artifact@v4
with:
name: rotor-windows.zip
path: rotor.zip
# MacOS
- name: Zip Artifact
if: runner.os == 'macOS'
run: zip -r rotor.zip bin/Rotor_artefacts/VST3/Rotor.vst3 bin/Rotor_artefacts/AU/Rotor.component
- name: Upload
if: runner.os == 'macOS'
uses: actions/upload-artifact@v4
with:
name: rotor-macos.zip
path: rotor.zip