From bb0e48afdb38790416856891cb19327ac70d5532 Mon Sep 17 00:00:00 2001 From: Birch-san Date: Wed, 28 Aug 2019 23:57:33 +0100 Subject: [PATCH 1/7] Initial guess --- .github/workflows/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..b593ae2 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,18 @@ +name: CI + +on: [push] + +jobs: + build: + + runs-on: macOS-latest + + steps: + - uses: actions/checkout@v1 + - name: Release build + run: | + cd Builds/MacOSX + xcodebuild -scheme 'juicysfplugin - All' -configuration 'Release' -project juicysfplugin.xcodeproj + - name: Archive + run: | + ./archive-for-distribution.sh 3.0.0 From b3ed2e79e27d53bc30b80f7c8022236509121d04 Mon Sep 17 00:00:00 2001 From: Birch-san Date: Thu, 29 Aug 2019 22:57:18 +0100 Subject: [PATCH 2/7] try to get JUCE in CI --- .github/workflows/main.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b593ae2..501d372 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,11 +8,20 @@ jobs: runs-on: macOS-latest steps: + - name: Get JUCE + run: | + cd /Applications + ls -la + git clone https://github.com/WeAreROLI/JUCE.git + ls -la JUCE - uses: actions/checkout@v1 - name: Release build run: | cd Builds/MacOSX xcodebuild -scheme 'juicysfplugin - All' -configuration 'Release' -project juicysfplugin.xcodeproj - name: Archive - run: | - ./archive-for-distribution.sh 3.0.0 + run: ./archive-for-distribution.sh 2.3.4 + - uses: actions/upload-artifact@master + with: + name: my-artifact + path: build/juicysfplugin.2.3.4.Release.tar.xz From 78482a56db542c327d9f8e0c5debbe5d157710e1 Mon Sep 17 00:00:00 2001 From: Birch-san Date: Thu, 29 Aug 2019 23:10:29 +0100 Subject: [PATCH 3/7] use legacy build system in XCode --- .github/workflows/main.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 501d372..51feece 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,16 +9,10 @@ jobs: steps: - name: Get JUCE - run: | - cd /Applications - ls -la - git clone https://github.com/WeAreROLI/JUCE.git - ls -la JUCE + run: git -C /Applications clone https://github.com/WeAreROLI/JUCE.git - uses: actions/checkout@v1 - name: Release build - run: | - cd Builds/MacOSX - xcodebuild -scheme 'juicysfplugin - All' -configuration 'Release' -project juicysfplugin.xcodeproj + run: xcodebuild -scheme 'juicysfplugin - All' -configuration 'Release' -project Builds/MacOSX/juicysfplugin.xcodeproj -UseModernBuildSystem=NO - name: Archive run: ./archive-for-distribution.sh 2.3.4 - uses: actions/upload-artifact@master From a84d95a64f531cb9bd15ff7442bc5351da6bf93d Mon Sep 17 00:00:00 2001 From: Birch-san Date: Thu, 29 Aug 2019 23:40:25 +0100 Subject: [PATCH 4/7] Get VST3 SDK, buld VST3, AU, Standalone --- .github/workflows/main.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 51feece..72f7ea3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,13 +9,19 @@ jobs: steps: - name: Get JUCE - run: git -C /Applications clone https://github.com/WeAreROLI/JUCE.git + run: | + git -C /Applications clone --depth=1 --branch 5.4.3 https://github.com/WeAreROLI/JUCE.git + mkdir -p ~/SDKs && wget -qO- https://www.steinberg.net/vst3sdk | bsdtar -xf- -C ~/SDKs - uses: actions/checkout@v1 - - name: Release build - run: xcodebuild -scheme 'juicysfplugin - All' -configuration 'Release' -project Builds/MacOSX/juicysfplugin.xcodeproj -UseModernBuildSystem=NO + - name: Build AU + run: xcodebuild -scheme 'juicysfplugin - AU' -configuration 'Debug' -project Builds/MacOSX/juicysfplugin.xcodeproj -UseModernBuildSystem=NO + - name: Build VST3 + run: xcodebuild -scheme 'juicysfplugin - VST3' -configuration 'Debug' -project Builds/MacOSX/juicysfplugin.xcodeproj -UseModernBuildSystem=NO + - name: Build Standalone Plugin + run: xcodebuild -scheme 'juicysfplugin - Standalone Plugin' -configuration 'Debug' -project Builds/MacOSX/juicysfplugin.xcodeproj -UseModernBuildSystem=NO - name: Archive - run: ./archive-for-distribution.sh 2.3.4 + run: ./archive-for-distribution.sh "$GITHUB_SHA" - uses: actions/upload-artifact@master with: name: my-artifact - path: build/juicysfplugin.2.3.4.Release.tar.xz + path: build/juicysfplugin.$GITHUB_SHA.Release.tar.xz From eaccc342311b38d760656fd1f4a17e4cc06c5a1b Mon Sep 17 00:00:00 2001 From: Birch-san Date: Thu, 29 Aug 2019 23:45:46 +0100 Subject: [PATCH 5/7] Split VST3 SDK fetch into separate step, set macro --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 72f7ea3..05c08f5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,14 +9,14 @@ jobs: steps: - name: Get JUCE - run: | - git -C /Applications clone --depth=1 --branch 5.4.3 https://github.com/WeAreROLI/JUCE.git - mkdir -p ~/SDKs && wget -qO- https://www.steinberg.net/vst3sdk | bsdtar -xf- -C ~/SDKs + run: git -C /Applications clone --depth=1 --branch 5.4.3 https://github.com/WeAreROLI/JUCE.git + - name: Get Steinberg VST3 SDK + run: mkdir -p ~/SDKs && wget -qO- https://www.steinberg.net/vst3sdk | bsdtar -xf- -C ~/SDKs - uses: actions/checkout@v1 - name: Build AU run: xcodebuild -scheme 'juicysfplugin - AU' -configuration 'Debug' -project Builds/MacOSX/juicysfplugin.xcodeproj -UseModernBuildSystem=NO - name: Build VST3 - run: xcodebuild -scheme 'juicysfplugin - VST3' -configuration 'Debug' -project Builds/MacOSX/juicysfplugin.xcodeproj -UseModernBuildSystem=NO + run: xcodebuild GCC_PREPROCESSOR_DEFINITIONS='$GCC_PREPROCESSOR_DEFINITIONS JUCE_VST3_CAN_REPLACE_VST2=0' -scheme 'juicysfplugin - VST3' -configuration 'Debug' -project Builds/MacOSX/juicysfplugin.xcodeproj -UseModernBuildSystem=NO - name: Build Standalone Plugin run: xcodebuild -scheme 'juicysfplugin - Standalone Plugin' -configuration 'Debug' -project Builds/MacOSX/juicysfplugin.xcodeproj -UseModernBuildSystem=NO - name: Archive From 435e28448b5660397bcd14540ff84015fa3c2199 Mon Sep 17 00:00:00 2001 From: Birch-san Date: Sun, 1 Sep 2019 13:44:01 +0100 Subject: [PATCH 6/7] use same macros for every target --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 05c08f5..a21f4b6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,11 +14,11 @@ jobs: run: mkdir -p ~/SDKs && wget -qO- https://www.steinberg.net/vst3sdk | bsdtar -xf- -C ~/SDKs - uses: actions/checkout@v1 - name: Build AU - run: xcodebuild -scheme 'juicysfplugin - AU' -configuration 'Debug' -project Builds/MacOSX/juicysfplugin.xcodeproj -UseModernBuildSystem=NO + run: xcodebuild -scheme 'juicysfplugin - AU' -configuration 'Debug' -project Builds/MacOSX/juicysfplugin.xcodeproj -UseModernBuildSystem=NO GCC_PREPROCESSOR_DEFINITIONS='$GCC_PREPROCESSOR_DEFINITIONS JUCE_VST3_CAN_REPLACE_VST2=0' - name: Build VST3 - run: xcodebuild GCC_PREPROCESSOR_DEFINITIONS='$GCC_PREPROCESSOR_DEFINITIONS JUCE_VST3_CAN_REPLACE_VST2=0' -scheme 'juicysfplugin - VST3' -configuration 'Debug' -project Builds/MacOSX/juicysfplugin.xcodeproj -UseModernBuildSystem=NO + run: xcodebuild -scheme 'juicysfplugin - VST3' -configuration 'Debug' -project Builds/MacOSX/juicysfplugin.xcodeproj -UseModernBuildSystem=NO GCC_PREPROCESSOR_DEFINITIONS='$GCC_PREPROCESSOR_DEFINITIONS JUCE_VST3_CAN_REPLACE_VST2=0' - name: Build Standalone Plugin - run: xcodebuild -scheme 'juicysfplugin - Standalone Plugin' -configuration 'Debug' -project Builds/MacOSX/juicysfplugin.xcodeproj -UseModernBuildSystem=NO + run: xcodebuild -scheme 'juicysfplugin - Standalone Plugin' -configuration 'Debug' -project Builds/MacOSX/juicysfplugin.xcodeproj -UseModernBuildSystem=NO GCC_PREPROCESSOR_DEFINITIONS='$GCC_PREPROCESSOR_DEFINITIONS JUCE_VST3_CAN_REPLACE_VST2=0' - name: Archive run: ./archive-for-distribution.sh "$GITHUB_SHA" - uses: actions/upload-artifact@master From 469f0714511ea0ea3659535a759e254212c312f2 Mon Sep 17 00:00:00 2001 From: Birch-san Date: Sun, 1 Sep 2019 13:49:21 +0100 Subject: [PATCH 7/7] rely on JUCE's built-in VST3 SDK; avoid redefinition --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a21f4b6..e5233a6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,8 +10,8 @@ jobs: steps: - name: Get JUCE run: git -C /Applications clone --depth=1 --branch 5.4.3 https://github.com/WeAreROLI/JUCE.git - - name: Get Steinberg VST3 SDK - run: mkdir -p ~/SDKs && wget -qO- https://www.steinberg.net/vst3sdk | bsdtar -xf- -C ~/SDKs +# - name: Get Steinberg VST3 SDK +# run: mkdir -p ~/SDKs && wget -qO- https://www.steinberg.net/vst3sdk | bsdtar -xf- -C ~/SDKs - uses: actions/checkout@v1 - name: Build AU run: xcodebuild -scheme 'juicysfplugin - AU' -configuration 'Debug' -project Builds/MacOSX/juicysfplugin.xcodeproj -UseModernBuildSystem=NO GCC_PREPROCESSOR_DEFINITIONS='$GCC_PREPROCESSOR_DEFINITIONS JUCE_VST3_CAN_REPLACE_VST2=0'