-
Notifications
You must be signed in to change notification settings - Fork 8
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
Showing
7 changed files
with
71 additions
and
6 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
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,59 @@ | ||
name: build_examples | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: # lets you run a build from github.com | ||
# Runs the workflow on all push events | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
|
||
# When pushing new commits, cancel any workflows with the same name on that branch | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build_test: | ||
name: ${{ matrix.name }} | ||
strategy: | ||
fail-fast: false # show all errors for each platform (vs. cancel jobs on error) | ||
matrix: | ||
include: | ||
- name: Linux-x86_64 | ||
os: ubuntu-latest | ||
- name: macOS-x86_64 | ||
os: macOS-latest | ||
- name: macOS-arm64 | ||
os: macOS-latest | ||
- name: Windows-x86_64 | ||
os: windows-latest | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: get repo and submodules | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
- name: setup | ||
uses: ./.github/actions/setup | ||
- name: add juce deps | ||
shell: bash | ||
run: | | ||
if [ "${{ matrix.name }}" == "Linux-x86_64" ]; then | ||
sudo apt install libxrandr-dev libxinerama-dev libxcursor-dev libfreetype6-dev libasound2-dev libfontconfig1-dev | ||
# Fix the juce bug with ft2build.h not found | ||
sudo ln -s /usr/include/freetype2/ft2build.h /usr/include/ft2build.h | ||
sudo ln -s /usr/include/freetype2/freetype /usr/include/freetype | ||
fi | ||
- name: build | ||
uses: ./.github/actions/build | ||
with: | ||
BUILD_TYPE: Release | ||
CMAKE_BUILD_PARALLEL_LEVEL: 4 | ||
TARGETS: (anira-clap-plugin-example anira-juce-plugin-example_All minimal-libtorch minimal-onnxruntime minimal-tflite) | ||
CMAKE_BUILD_ARGS: "-DBUILD_SHARED_LIBS=ON -DANIRA_WITH_EXAMPLES=ON" |
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 |
---|---|---|
|
@@ -8,7 +8,6 @@ on: | |
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
|
||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
|
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 |
---|---|---|
|
@@ -271,4 +271,4 @@ endif() | |
|
||
if (ANIRA_WITH_TESTS) | ||
add_subdirectory(test) | ||
endif() | ||
endif() |
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
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,4 @@ | ||
# TODOs | ||
|
||
- [ ] Trigger `ldconfig` in the .deb package | ||
- [ ] Run the examples as tests in CI |
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