-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit dd0f674
Showing
8 changed files
with
2,072 additions
and
0 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,84 @@ | ||
name: Build VCV Rack Plugin | ||
on: [push, pull_request] | ||
|
||
env: | ||
rack-sdk-version: 2.5.1 | ||
rack-plugin-toolchain-dir: /home/build/rack-plugin-toolchain | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.platform }} | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/qno/rack-plugin-toolchain-win-linux | ||
options: --user root | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [win-x64, lin-x64] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Build plugin | ||
run: | | ||
export PLUGIN_DIR=$GITHUB_WORKSPACE | ||
pushd ${{ env.rack-plugin-toolchain-dir }} | ||
make plugin-build-${{ matrix.platform }} | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: ${{ env.rack-plugin-toolchain-dir }}/plugin-build | ||
name: ${{ matrix.platform }} | ||
|
||
build-mac: | ||
name: mac | ||
runs-on: macos-12 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [x64, arm64] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Get Rack-SDK | ||
run: | | ||
pushd $HOME | ||
curl -o Rack-SDK.zip https://vcvrack.com/downloads/Rack-SDK-${{ env.rack-sdk-version }}-mac-${{ matrix.platform }}.zip | ||
unzip Rack-SDK.zip | ||
- name: Build plugin | ||
run: | | ||
CROSS_COMPILE_TARGET_x64=x86_64-apple-darwin | ||
CROSS_COMPILE_TARGET_arm64=arm64-apple-darwin | ||
export RACK_DIR=$HOME/Rack-SDK | ||
export CROSS_COMPILE=$CROSS_COMPILE_TARGET_${{ matrix.platform }} | ||
make dep | ||
make dist | ||
echo "Plugin architecture '$(lipo -archs plugin.dylib)'" | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: dist/*.vcvplugin | ||
name: mac-${{ matrix.platform }} | ||
|
||
publish: | ||
name: Publish plugin | ||
runs-on: ubuntu-latest | ||
needs: [build, build-mac] | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
path: _artifacts | ||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: "latest" | ||
prerelease: true | ||
title: "Development Build" | ||
files: | | ||
_artifacts/**/*.vcvplugin |
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,6 @@ | ||
/build | ||
/dist | ||
/*.so | ||
/*.dylib | ||
/*.dll | ||
.DS_Store |
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,23 @@ | ||
# If RACK_DIR is not defined when calling the Makefile, default to two directories above | ||
RACK_DIR ?= ../.. | ||
|
||
# FLAGS will be passed to both the C and C++ compiler | ||
FLAGS += | ||
CFLAGS += | ||
CXXFLAGS += | ||
|
||
# Careful about linking to shared libraries, since you can't assume much about the user's environment and library search path. | ||
# Static libraries are fine, but they should be added to this plugin's build system. | ||
LDFLAGS += | ||
|
||
# Add .cpp files to the build | ||
SOURCES += $(wildcard src/*.cpp) | ||
|
||
# Add files to the ZIP package when running `make dist` | ||
# The compiled plugin and "plugin.json" are automatically added. | ||
DISTRIBUTABLES += res | ||
DISTRIBUTABLES += $(wildcard LICENSE*) | ||
DISTRIBUTABLES += $(wildcard presets) | ||
|
||
# Include the Rack plugin Makefile framework | ||
include $(RACK_DIR)/plugin.mk |
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,23 @@ | ||
{ | ||
"slug": "BlackNoiseModular", | ||
"name": "BlackNoiseModular", | ||
"version": "2.0.0", | ||
"license": "proprietary", | ||
"brand": "BlackNoiseModular", | ||
"author": "Alexandre Simon, Ewan Hemingway", | ||
"authorEmail": "", | ||
"authorUrl": "", | ||
"pluginUrl": "", | ||
"manualUrl": "", | ||
"sourceUrl": "", | ||
"donateUrl": "", | ||
"changelogUrl": "", | ||
"modules": [ | ||
{ | ||
"slug": "Cosmos", | ||
"name": "Cosmos", | ||
"description": "", | ||
"tags": [] | ||
} | ||
] | ||
} |
Oops, something went wrong.