forked from giulioz/jv880_juce
-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (86 loc) · 2.51 KB
/
main.yml
File metadata and controls
88 lines (86 loc) · 2.51 KB
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: jv880
on:
push:
branches:
- '**'
jobs:
build-win:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3.3.0
with:
fetch-depth: 0
submodules: recursive
- name: "Download Projucer"
run: |
git clone -b 8.0.7 --depth 1 https://github.com/juce-framework/JUCE JUCE
bash -ex ./build/download-projucer.sh
shell: bash
env:
OS: windows
- name: "Build jv880"
run: sh -ex ./build/build-win.sh
shell: bash
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: jv880-win
path: |
./Builds/VisualStudio2022/x64/Release/VST3/jv880.vst3
./Builds/VisualStudio2022/x64/Release/Standalone Plugin/jv880.exe
build-osx:
runs-on: macos-13
steps:
- uses: actions/checkout@v3.3.0
with:
fetch-depth: 0
submodules: recursive
- name: "Download Projucer"
run: |
git clone -b 8.0.7 --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 ./build/build-osx.sh
shell: bash
- name: "zip macOS"
run: |
cd ./Builds/MacOSX/build/Release/
zip -r jv880.vst3.macOS.zip jv880.vst3
zip -r jv880.component.macOS.zip jv880.component
zip -r jv880.app.macOS.zip jv880.app
cd -
shell: bash
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: jv880-osx
path: |
./Builds/MacOSX/build/Release/jv880.vst3.macOS.zip
./Builds/MacOSX/build/Release/jv880.component.macOS.zip
./Builds/MacOSX/build/Release/jv880.app.macOS.zip
release:
name: "Release"
needs: [build-win, build-osx]
if: github.ref == 'refs/heads/main'
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3.3.0
- name: Retrieve artifacts
uses: actions/download-artifact@v4
with:
path: build
pattern: jv880-*
merge-multiple: true
- run: ls -R build
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
automatic_release_tag: latest
title: jv880 Latest
files: |
build/**/*