-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
juce compat: Added a workflow to build against the juce tip
- Loading branch information
Showing
1 changed file
with
56 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,56 @@ | ||
name: Build | ||
on: | ||
schedule: | ||
- cron: '* 0 * * *' | ||
push: | ||
workflow_dispatch: | ||
|
||
env: | ||
BUILD_CONFIG: Release | ||
BUILD_DIR: build | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
name: [ linux, macOS, windows ] | ||
include: | ||
- name: linux | ||
os: ubuntu-latest | ||
generator: "-DCMAKE_BUILD_TYPE=Release" | ||
- name: macOS | ||
os: macos-latest | ||
generator: "-G Xcode" | ||
- name: windows | ||
os: windows-latest | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install dependencies | ||
if: ${{ matrix.name == 'linux' }} | ||
run: | | ||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | ||
sudo apt-get update | ||
sudo apt-get install -y gcc-11 g++-11 freeglut3-dev g++ libasound2-dev libcurl4-openssl-dev libfreetype6-dev libjack-jackd2-dev libx11-dev libxcomposite-dev libxcursor-dev libxinerama-dev libxrandr-dev mesa-common-dev ladspa-sdk webkit2gtk-4.0 libgtk-3-dev xvfb | ||
- name: Set Xcode version | ||
if: runner.os == 'macOS' | ||
run: sudo xcode-select -s /Applications/Xcode_15.3.app | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Update juce to tip | ||
run: | | ||
cd module/juce | ||
git pull origin develop | ||
# Generate build files | ||
- name: "Build all" | ||
id: generate | ||
shell: bash | ||
run: | | ||
cmake -B ${{ env.BUILD_DIR }} ${{ matrix.generator }} | ||
cmake --build ./${{ env.BUILD_DIR }} --config ${{ env.BUILD_CONFIG }} --parallel |