commit d1718f34050e657f35089c2ce798290f203525cf
parent abd73dbaa810f106cd4c12b8c4e4f8da6d7c610b
Author: henry <henryborchers@yahoo.com>
Date: Wed, 14 Jul 2021 12:58:06 -0500
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}}