From b1fdc0eb8a573e5001197c4aba83131661672912 Mon Sep 17 00:00:00 2001 From: Bret Curtis Date: Tue, 19 Oct 2021 14:00:50 +0200 Subject: [PATCH] Make MacOS great again (#3178) * Make MacOS great again * Update cmake.yml --- .github/workflows/cmake.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index d53d2380d4..1ce10fa6cd 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -8,7 +8,7 @@ env: BUILD_TYPE: RelWithDebInfo jobs: - build: + Ubuntu: runs-on: ubuntu-latest steps: @@ -60,3 +60,28 @@ jobs: # with: # path: ./build_artifact.7z # name: build_artifact.7z + + MacOS: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install Building Dependancies + run: CI/before_install.osx.sh + + - name: Prime ccache + uses: hendrikmuhs/ccache-action@v1 + with: + key: ${{ matrix.os }}-${{ env.BUILD_TYPE }} + max-size: 1000M + + - name: Configure + run: | + rm -fr build # remove the build directory + CI/before_script.osx.sh + + - name: Build + run: | + cd build + make -j $(sysctl -n hw.logicalcpu) package