-
Notifications
You must be signed in to change notification settings - Fork 1
88 lines (86 loc) · 2.76 KB
/
main.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
78
79
80
81
82
83
84
85
86
87
88
# Based on https://github.com/OwlPlug/owlplug-scanner/blob/master/.github/workflows/main.yml
name: RdPiano
on:
push:
branches:
- '**'
jobs:
build-win:
runs-on: windows-2022
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
submodules: recursive
- name: "Download Projucer"
run: |
cd rdpiano_juce
git clone -b 8.0.1 --depth 1 https://github.com/juce-framework/JUCE JUCE
bash -ex ./build/download-projucer.sh
shell: bash
env:
OS: windows
- name: "Build RdPiano"
run: sh -ex ./rdpiano_juce/build/build-win.sh
shell: bash
- name: Upload Artifact
uses: actions/[email protected]
with:
name: RdPiano-win
path: |
./rdpiano_juce/Builds/VisualStudio2022/x64/Release/VST3/rdpiano_juce.vst3
./rdpiano_juce/Builds/VisualStudio2022/x64/Release/Standalone Plugin/rdpiano_juce.exe
build-osx:
runs-on: macos-13
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
submodules: recursive
- name: "Download Projucer"
run: |
cd rdpiano_juce
git clone -b 8.0.1 --depth 1 https://github.com/juce-framework/JUCE JUCE
bash -ex ./build/download-projucer.sh
shell: bash
env:
OS: osx
- name: "Build macOS"
run: sh -ex ./rdpiano_juce/build/build-osx.sh
shell: bash
- name: "zip macOS"
run: |
cd ./rdpiano_juce/Builds/MacOSX/build/Release/
zip -r rdpiano_juce.vst3.macOS.zip rdpiano_juce.vst3
zip -r rdpiano_juce.component.macOS.zip rdpiano_juce.component
zip -r rdpiano_juce.app.macOS.zip rdpiano_juce.app
cd -
shell: bash
- name: Upload Artifact
uses: actions/[email protected]
with:
name: RdPiano-osx
path: |
./rdpiano_juce/Builds/MacOSX/build/Release/rdpiano_juce.vst3.macOS.zip
./rdpiano_juce/Builds/MacOSX/build/Release/rdpiano_juce.component.macOS.zip
./rdpiano_juce/Builds/MacOSX/build/Release/rdpiano_juce.app.macOS.zip
release:
name: "Release"
needs: [build-win, build-osx]
if: github.ref == 'refs/heads/main'
runs-on: "ubuntu-latest"
steps:
- uses: actions/[email protected]
- name: Retrieve artifacts
uses: actions/download-artifact@v3
with:
path: ./rdpiano_juce/build
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
automatic_release_tag: latest
title: RdPiano Latest
files: |
rdpiano_juce/build/RdPiano-osx
rdpiano_juce/build/RdPiano-win