Skip to content

Commit

Permalink
CI: Switched the juce_compat workflow to use CPM as this seems to be …
Browse files Browse the repository at this point in the history
…more reliable than changing the git submodule commit
  • Loading branch information
drowaudio committed Jan 9, 2025
1 parent a7cd3b8 commit 503f093
Show file tree
Hide file tree
Showing 3 changed files with 1,300 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/juce_compat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ jobs:
run: sudo xcode-select -s /Applications/Xcode_15.3.app

- uses: actions/checkout@v4
with:
submodules: true
# with:
# submodules: true

- name: Update juce to tip
run: |
cd modules/juce
git config pull.rebase false # merge changes
git pull origin develop
# - name: Update juce to tip
# run: |
# cd modules/juce
# git config pull.rebase false # merge changes
# git pull origin develop

# Generate build files
- name: "Build all"
id: generate
shell: bash
run: |
cmake -B ${{ env.BUILD_DIR }} ${{ matrix.generator }}
cmake -B ${{ env.BUILD_DIR }} ${{ matrix.generator }} -DJUCE_CPM_DEVELOP=1
cmake --build ./${{ env.BUILD_DIR }} --config ${{ env.BUILD_CONFIG }} --parallel --target DemoRunner EngineInPluginDemo_common TestRunner Benchmarks
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ project(tracktion
HOMEPAGE_URL "https://github.com/Tracktion/tracktion_engine"
)

add_subdirectory(modules/juce)
if (JUCE_CPM_DEVELOP)
include(cmake/CPM.cmake)
CPMAddPackage("gh:juce-framework/JUCE#develop")
else()
add_subdirectory(modules/juce)
endif()

add_subdirectory(modules)

enable_testing()
Expand Down
Loading

0 comments on commit 503f093

Please sign in to comment.