From 7dc85091a3471598bfc1f86aab7f575fbfae59fc Mon Sep 17 00:00:00 2001 From: ksherlock Date: Thu, 26 Nov 2020 15:36:09 -0500 Subject: [PATCH] Create cmake-fat.yml --- .github/workflows/cmake-fat.yml | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/cmake-fat.yml diff --git a/.github/workflows/cmake-fat.yml b/.github/workflows/cmake-fat.yml new file mode 100644 index 0000000..32af0fa --- /dev/null +++ b/.github/workflows/cmake-fat.yml @@ -0,0 +1,38 @@ +name: CMake fat + +on: [push] + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + +jobs: + build: + runs-on: macos-11.0 + + steps: + - uses: actions/checkout@v2 + with: + submodules: true + + - name: Brew + run: brew install ragel lemon + + - 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 + run: cmake --build . --config $BUILD_TYPE + + - name: Archive + uses: actions/upload-artifact@v2 + with: + name: mpw fat + path: ${{runner.workspace}}/build/bin/mpw