Skip to content

Commit

Permalink
noodle
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Nov 21, 2024
1 parent 940d6db commit 29706a6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,24 @@ defaults:

jobs:
build_plugin:
name: PR - ${{ matrix.os }}
name: PR - ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
- os: macos-latest
- os: ubuntu-latest
- name: windows x64
os: windows-latest

- name: windows arm64ec
os: windows-latest
cmakeConfig: -G"Visual Studio 17 2022" -A arm64ec -DCMAKE_SYSTEM_VERSION=10

- name: macOS
os: macos-latest
cmakeConfig: -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"

- name: Linux
os: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -29,7 +39,7 @@ jobs:

- name: Build pull request version
run: |
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Debug
cmake -S . -B ./build ${{ matrix.cmakeConfig }} -DCMAKE_BUILD_TYPE=Debug -DJI_LATTICE_COPY_AFTER_BUILD=FALSE
cmake --build ./build --config Debug --target ji-lattice-plugin-installer --parallel 3
build_plugin_lindoc:
Expand All @@ -47,7 +57,7 @@ jobs:
image: ghcr.io/surge-synthesizer/sst-dockerimages/ubuntu20_gcc11:main
username: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}
cmakeArgs: -DCMAKE_BUILD_TYPE=Debug -GNinja
cmakeArgs: -DCMAKE_BUILD_TYPE=Debug -GNinja -DJI_LATTICE_COPY_AFTER_BUILD=FALSE
target: ji-lattice-plugin-installer

- name: Confirm Build
Expand Down
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)

option(JI_LATTICE_COPY_AFTER_BUILD "Copy the plugin after build" TRUE)

include (cmake/CPM.cmake)

CPMAddPackage("gh:juce-framework/JUCE#8.0.4")
Expand All @@ -27,7 +29,7 @@ juce_add_plugin(${PROJECT_NAME}

FORMATS AU VST3 Standalone

COPY_PLUGIN_AFTER_BUILD TRUE
COPY_PLUGIN_AFTER_BUILD ${JI_LATTICE_COPY_AFTER_BUILD}
)

juce_add_binary_data(lattices-binary
Expand Down

0 comments on commit 29706a6

Please sign in to comment.