7
7
AU_TARGET_NAME : PeakEater_AU
8
8
LV2_TARGET_NAME : PeakEater_LV2
9
9
CLAP_TARGET_NAME : PeakEater_CLAP
10
- JUCE_REVISION : 4e68af7
11
- MACOS_RELEASE_NAME : PeakEater_v0.6.1_macOS
12
- WINDOWS_RELEASE_NAME : PeakEater_v0.6.1_Windows
13
- LINUX_RELEASE_NAME : PeakEater_v0.6.1_Linux
10
+ JUCE_REVISION : 69795dc
11
+ MACOS_RELEASE_NAME : PeakEater_v0.6.2_macOS
12
+ WINDOWS_RELEASE_NAME : PeakEater_v0.6.2_Windows
13
+ LINUX_RELEASE_NAME : PeakEater_v0.6.2_Linux
14
14
jobs :
15
15
macos :
16
16
name : macOS
@@ -57,32 +57,34 @@ jobs:
57
57
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles
58
58
- name : Install Python Dependencies
59
59
run : python -m pip install -r ${{github.workspace}}/requirements.txt
60
+ - name : Install Ninja
61
+ run : |
62
+ brew update
63
+ brew install ninja
60
64
- name : Init Git Submodules
61
65
run : git submodule update --init --recursive
62
66
- name : Checkout JUCE
63
67
run : cd ${{github.workspace}}/Dependencies/JUCE && git checkout ${{env.JUCE_REVISION}}
64
- - name : Configure CMake
65
- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DJUCE_BUILD_EXAMPLES=OFF -DJUCE_BUILD_EXTRAS=ON -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
66
68
- name : Build VST3
67
- run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target ${{env.VST_TARGET_NAME}}
69
+ run : ${{github.workspace}}/Scripts/Build/MacOS.sh ${{env.BUILD_TYPE}} ${{env.VST_TARGET_NAME}}
68
70
- name : Build AU
69
- run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target ${{env.AU_TARGET_NAME}}
70
- - name : Build CLAP
71
- run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target ${{env.CLAP_TARGET_NAME}}
71
+ run : ${{github.workspace}}/Scripts/Build/MacOS.sh ${{env.BUILD_TYPE}} ${{env.AU_TARGET_NAME}}
72
72
- name : Build LV2
73
- run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target ${{env.LV2_TARGET_NAME}}
73
+ run : ${{github.workspace}}/Scripts/Build/MacOS.sh ${{env.BUILD_TYPE}} ${{env.LV2_TARGET_NAME}}
74
+ - name : Build CLAP
75
+ run : ${{github.workspace}}/Scripts/Build/MacOS.sh ${{env.BUILD_TYPE}} ${{env.CLAP_TARGET_NAME}}
74
76
- name : Package
75
77
env :
76
78
MACOS_APPLE_IDENTITY : ${{ secrets.MACOS_APPLE_IDENTITY }}
77
79
MACOS_APPLE_ID : ${{ secrets.MACOS_APPLE_ID }}
78
80
MACOS_APPLE_PASSWORD : ${{ secrets.MACOS_APPLE_PASSWORD }}
79
81
MACOS_APPLE_TEAM_ID : ${{ secrets.MACOS_APPLE_TEAM_ID }}
80
- run : python ${{github.workspace}}/Scripts/Release/MacOS.py --release_type=${{env.BUILD_TYPE}} --sign_and_notarize=True --release_version=0.6.1
82
+ run : python ${{github.workspace}}/Scripts/Release/MacOS.py --release_type=${{env.BUILD_TYPE}} --sign_and_notarize=True --release_version=0.6.2
81
83
- name : Upload Artifacts
82
84
uses : actions/upload-artifact@v3
83
85
with :
84
86
name : ${{ env.MACOS_RELEASE_NAME }}
85
- path : ${{github.workspace}}/build/release/PeakEater-0.6.1 .dmg
87
+ path : ${{github.workspace}}/build/release/PeakEater-0.6.2 .dmg
86
88
87
89
windows :
88
90
name : Windows
@@ -93,14 +95,12 @@ jobs:
93
95
run : git submodule update --init --recursive
94
96
- name : Checkout JUCE
95
97
run : cd ${{github.workspace}}\Dependencies\JUCE && git checkout ${{env.JUCE_REVISION}}
96
- - name : Configure CMake
97
- run : cmake . -B ${{github.workspace}}\build -G 'Visual Studio 17 2022' -A x64 -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE -DJUCE_BUILD_EXAMPLES=OFF -DJUCE_BUILD_EXTRAS=ON
98
98
- name : Build VST3
99
- run : cmake --build ${{github.workspace}}\build --config ${{env.BUILD_TYPE}} --target ${{env.VST_TARGET_NAME}}
100
- - name : Build CLAP
101
- run : cmake --build ${{github.workspace}}\build --config ${{env.BUILD_TYPE}} --target ${{env.CLAP_TARGET_NAME}}
99
+ run : ${{github.workspace}}\Scripts\Build\Windows.bat ${{env.BUILD_TYPE}} ${{env.VST_TARGET_NAME}}
102
100
- name : Build LV2
103
- run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target ${{env.LV2_TARGET_NAME}}
101
+ run : ${{github.workspace}}\Scripts\Build\Windows.bat ${{env.BUILD_TYPE}} ${{env.LV2_TARGET_NAME}}
102
+ - name : Build CLAP
103
+ run : ${{github.workspace}}\Scripts\Build\Windows.bat ${{env.BUILD_TYPE}} ${{env.CLAP_TARGET_NAME}}
104
104
- name : Upload Artifacts
105
105
uses : actions/upload-artifact@v3
106
106
with :
@@ -120,23 +120,62 @@ jobs:
120
120
- name : Install Build Dependencies
121
121
run : |
122
122
sudo apt-get update
123
- sudo apt-get install -y g++ libgtk-3-dev libfreetype6-dev libx11-dev libxinerama-dev libxrandr-dev libxcursor-dev mesa-common-dev libasound2-dev freeglut3-dev libxcomposite-dev libcurl4-openssl -dev
124
- sudo apt-get install libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-dev
123
+ sudo apt-get install -y g++ ninja-build libgtk-3-dev libfreetype6-dev libx11-dev libxinerama-dev libxrandr-dev libxcursor-dev mesa-common-dev
124
+ sudo apt-get install -y libasound2-dev freeglut3-dev libxcomposite-dev libcurl4-openssl-dev libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-dev
125
125
- name : Checkout JUCE
126
126
run : cd ${{github.workspace}}/Dependencies/JUCE && git checkout ${{env.JUCE_REVISION}}
127
- - name : Configure CMake
128
- run : cmake . -B ${{github.workspace}}/build -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE -DJUCE_BUILD_EXAMPLES=OFF -DJUCE_BUILD_EXTRAS=ON
129
127
- name : Build VST3
130
- run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target ${{env.VST_TARGET_NAME}}
131
- - name : Build CLAP
132
- run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target ${{env.CLAP_TARGET_NAME}}
128
+ run : ${{github.workspace}}/Scripts/Build/Linux.sh ${{env.BUILD_TYPE}} ${{env.VST_TARGET_NAME}}
133
129
- name : Build LV2
134
- run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target ${{env.LV2_TARGET_NAME}}
130
+ run : ${{github.workspace}}/Scripts/Build/Linux.sh ${{env.BUILD_TYPE}} ${{env.LV2_TARGET_NAME}}
131
+ - name : Build CLAP
132
+ run : ${{github.workspace}}/Scripts/Build/Linux.sh ${{env.BUILD_TYPE}} ${{env.CLAP_TARGET_NAME}}
135
133
- name : Upload Artifacts
136
134
uses : actions/upload-artifact@v3
137
135
with :
138
136
name : ${{ env.LINUX_RELEASE_NAME }}
139
137
path : |
140
- ${{github.workspace}}/build/PeakEater_artefacts/VST3/PeakEater.vst3/Contents/x86_64-linux/PeakEater.so
141
- ${{github.workspace}}/build/PeakEater_artefacts/LV2/PeakEater.lv2
142
- ${{github.workspace}}/build/PeakEater_artefacts/CLAP/PeakEater.claps
138
+ ${{github.workspace}}/build/PeakEater_artefacts/${{env.BUILD_TYPE}}/VST3/PeakEater.vst3/Contents/x86_64-linux/PeakEater.so
139
+ ${{github.workspace}}/build/PeakEater_artefacts/${{env.BUILD_TYPE}}/LV2/PeakEater.lv2
140
+ ${{github.workspace}}/build/PeakEater_artefacts/${{env.BUILD_TYPE}}/CLAP/PeakEater.clap
141
+
142
+ release :
143
+ name : Publish Release Draft
144
+ runs-on : ubuntu-latest
145
+ needs : [macos, windows, linux]
146
+ steps :
147
+ - name : Download macOS Artifacts
148
+ uses : actions/download-artifact@v3
149
+ with :
150
+ name : ${{ env.MACOS_RELEASE_NAME }}
151
+ path : ${{ env.MACOS_RELEASE_NAME }}
152
+ - name : Download Windows Artifacts
153
+ uses : actions/download-artifact@v3
154
+ with :
155
+ name : ${{ env.WINDOWS_RELEASE_NAME }}
156
+ path : ${{ env.WINDOWS_RELEASE_NAME }}
157
+ - name : Download Linux Artifacts
158
+ uses : actions/download-artifact@v3
159
+ with :
160
+ name : ${{ env.LINUX_RELEASE_NAME }}
161
+ path : ${{ env.LINUX_RELEASE_NAME }}
162
+ - name : Archive Artifacts
163
+ run : |
164
+ zip -r ${{ env.MACOS_RELEASE_NAME }}{.zip,}
165
+ mkdir ${{ env.WINDOWS_RELEASE_NAME }}/tmp
166
+ mv ${{ env.WINDOWS_RELEASE_NAME }}/VST3/PeakEater.vst3/Contents/x86_64-win/PeakEater.vst3 ${{ env.WINDOWS_RELEASE_NAME }}/tmp
167
+ rm -rf ${{ env.WINDOWS_RELEASE_NAME }}/VST3/PeakEater.vst3
168
+ mv ${{ env.WINDOWS_RELEASE_NAME }}/tmp/PeakEater.vst3 ${{ env.WINDOWS_RELEASE_NAME }}/VST3
169
+ rm -rf ${{ env.WINDOWS_RELEASE_NAME }}/tmp
170
+ zip -r ${{ env.WINDOWS_RELEASE_NAME }}{.zip,}
171
+ zip -r ${{ env.LINUX_RELEASE_NAME }}{.zip,}
172
+ - name : Display structure of downloaded files
173
+ run : ls -R
174
+ - uses : ncipollo/release-action@v1
175
+ with :
176
+ allowUpdates : true
177
+ draft : true
178
+ removeArtifacts : true
179
+ makeLatest : true
180
+ tag : " v0.6.2"
181
+ artifacts : " ${{ env.MACOS_RELEASE_NAME }}.zip,${{ env.WINDOWS_RELEASE_NAME }}.zip,${{ env.LINUX_RELEASE_NAME }}.zip"
0 commit comments