commit 535fe799e4f7897e55bed8e31047948fdc11556f
parent 84cd36351522e1ea191339457d87ba9f3c8f5e9c
Author: dsp56300 <87139854+dsp56300@users.noreply.github.com>
Date: Wed, 14 Jul 2021 20:55:54 +0200
Merge pull request #3 from henryborchers/github_actions
add github actions for building with GCC, Apple Clang, and MSVC
Diffstat:
1 file changed, 29 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
@@ -0,0 +1,29 @@
+name: CMake
+
+on: [push, pull_request]
+
+env:
+ BUILD_TYPE: Release
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ ubuntu-latest, macos-latest, windows-latest ]
+ fail-fast: false
+ name: ${{ matrix.os }} build
+ steps:
+ - name: Install X
+ if: matrix.os == 'ubuntu-latest'
+ run: sudo apt update && sudo apt install -y libgl1-mesa-dev xorg-dev
+
+ - uses: actions/checkout@v2
+ with:
+ submodules: "recursive"
+
+ - name: Configure CMake
+ run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -Dgearmulator_BUILD_JUCEPLUGIN:BOOL=FALSE
+
+ - name: Build
+ run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}