-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using the new actions factoring, move ShortCircuit to actions. A bit more than just 'copy from monique' since there's a matrix and compiler options. But not a lot more.
- Loading branch information
Showing
3 changed files
with
183 additions
and
414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Build Pull Request | ||
on: | ||
pull_request: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build_plugin: | ||
name: PR - ${{ matrix.name }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- name: "windows msvc" | ||
os: windows-latest | ||
target: scxt_plugin_Standalone | ||
cmakeConfig: -A x64 | ||
runTests: false | ||
- name: "windows clang" | ||
os: windows-latest | ||
target: scxt_plugin_Standalone | ||
cmakeConfig: -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang | ||
runTests: false | ||
- name: "mac standalone" | ||
os: macos-latest | ||
target: scxt_plugin_Standalone | ||
runTests: true | ||
- name: "ubuntu standalone" | ||
os: ubuntu-latest | ||
target: scxt_plugin_Standalone | ||
runTests: true | ||
|
||
- name: "windows clap first" | ||
os: windows-latest | ||
target: scxt_clapfirst_all | ||
cmakeConfig: -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DSCXT_JUCE_CLASSIC_STYLE=FALSE | ||
runTests: false | ||
- name: "mac clap first" | ||
os: macos-latest | ||
target: scxt_clapfirst_all | ||
cmakeConfig: -DSCXT_JUCE_CLASSIC_STYLE=FALSE | ||
runTests: false | ||
- name: "ubuntu clap first" | ||
os: ubuntu-latest | ||
target: scxt_clapfirst_all | ||
cmakeConfig: -DSCXT_JUCE_CLASSIC_STYLE=FALSE | ||
runTests: false | ||
|
||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Prepare for JUCE | ||
uses: surge-synthesizer/sst-githubactions/prepare-for-juce@main | ||
with: | ||
os: ${{ runner.os }} | ||
|
||
- name: Build pull request version | ||
run: | | ||
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Debug ${{ matrix.cmakeConfig }} | ||
cmake --build ./build --config Debug --target ${{ matrix.target }} --parallel 3 | ||
- name: Run Tests | ||
if: ${{ matrix.runTests }} | ||
run: | | ||
cmake --build build --config Debug --target scxt-test --parallel 4 | ||
./build/tests/scxt-test | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
name: Build Release Installer | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- 'v**' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build_plugin: | ||
name: Release Build - ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: windows-latest | ||
cmakeArgs: -D"CMAKE_OSX_ARCHITECTURES=arm64;x86_64" | ||
- os: macos-latest | ||
cmakeArgs: -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang | ||
- os: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: apple-actions/import-codesign-certs@v3 | ||
if: runner.os == 'macOS' | ||
with: | ||
p12-file-base64: ${{ secrets.MAC_CERTS_P12 }} | ||
p12-password: ${{ secrets.CERT_PWD }} | ||
|
||
- name: Prepare for JUCE | ||
uses: surge-synthesizer/sst-githubactions/prepare-for-juce@main | ||
with: | ||
os: ${{ runner.os }} | ||
|
||
|
||
- name: Build release version | ||
run: | | ||
export MAC_SIGNING_CERT="${{ secrets.MAC_SIGNING_CERT_NAME }}" | ||
export MAC_INSTALLING_CERT="${{ secrets.MAC_INSTALLING_CERT_NAME }}" | ||
export MAC_SIGNING_ID="${{ secrets.MAC_SIGNING_ID }}" | ||
export MAC_SIGNING_1UPW="${{ secrets.MAC_SIGNING_1UPW }}" | ||
export MAC_SIGNING_TEAM="${{ secrets.MAC_SIGNING_TEAM }}" | ||
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release ${{ matrix.cmakeArgs }} | ||
cmake --build ./build --config Release --target shortcircuit-installer --parallel 3 | ||
- name: Show Installer Directory | ||
run: | | ||
ls -l ./build/installer | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: build/installer | ||
name: build-${{ matrix.os }} | ||
|
||
publish-scxt-nightly: | ||
name: Publish scxt Nightly | ||
if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'surge-synthesizer' }} | ||
runs-on: ubuntu-latest | ||
needs: [ build_plugin ] | ||
steps: | ||
- name: Upload to Nightly | ||
uses: surge-synthesizer/sst-githubactions/upload-to-release@main | ||
with: | ||
tag: Nightly | ||
reuse_tag: true | ||
create_tag: false | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Post to Discord | ||
uses: surge-synthesizer/sst-githubactions/discord-release-notify@main | ||
with: | ||
webhook: ${{ secrets.DISCORD_MONOPLUGS_WEBHOOK }} | ||
tag: Nightly | ||
title: "A New ShortCircuit Nightly is Available" | ||
subtitle: "Still pre-alpha! Use care!" | ||
|
||
|
||
publish-scxt-release: | ||
name: Publish scxt Release | ||
if: startsWith(github.ref, 'refs/tags/v') && github.repository_owner == 'surge-synthesizer' | ||
runs-on: ubuntu-latest | ||
needs: [ build_plugin ] | ||
steps: | ||
- name: Upload to Release | ||
uses: surge-synthesizer/sst-githubactions/upload-to-release@main | ||
with: | ||
tag: ${{ github.ref_name }} | ||
reuse_tag: false | ||
create_tag: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Post to Discord | ||
uses: surge-synthesizer/sst-githubactions/discord-release-notify@main | ||
with: | ||
webhook: ${{ secrets.DISCORD_MONOPLUGS_WEBHOOK }} | ||
tag: ${{ github.ref_name }} | ||
title: "A New ShortCircuit XT Release is Available" | ||
subtitle: "Release ${{ github.ref_name }}" | ||
|
Oops, something went wrong.