Skip to content

Commit

Permalink
juce compat: Added a workflow to build against the juce tip
Browse files Browse the repository at this point in the history
  • Loading branch information
drowaudio committed Jul 16, 2024
1 parent e0de79f commit a64ff5f
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/juce_compat.yaml
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

0 comments on commit a64ff5f

Please sign in to comment.