diff --git a/.github/workflows/juce_compat.yaml b/.github/workflows/juce_compat.yaml new file mode 100644 index 00000000000..6516b1f0b57 --- /dev/null +++ b/.github/workflows/juce_compat.yaml @@ -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