From e8c0080f7783dde2cdf07111040bd3f74bedd161 Mon Sep 17 00:00:00 2001 From: ksherlock Date: Tue, 1 Dec 2020 23:05:43 -0500 Subject: [PATCH] Create cmake.yml --- .github/workflows/cmake.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/cmake.yml diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml new file mode 100644 index 0000000..69a58ed --- /dev/null +++ b/.github/workflows/cmake.yml @@ -0,0 +1,30 @@ +name: CMake MacOS 11 + +on: [push] + +env: + BUILD_TYPE: Release + +jobs: + build: + runs-on: macos-11.0 + + steps: + - uses: actions/checkout@v2 + + - name: Brew + run: brew install ragel + + - name: Create Build Environment + run: cmake -E make_directory ${{runner.workspace}}/build + + - name: Configure CMake + shell: bash + working-directory: ${{runner.workspace}}/build + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" + + - name: Build + working-directory: ${{runner.workspace}}/build + shell: bash + # Execute the build. You can specify a specific target with "--target " + run: cmake --build . --config $BUILD_TYPE