From 041e29d1aebac0b8e8d7b3efb850daca2d0de87f Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Wed, 19 May 2021 11:29:38 +0200 Subject: [PATCH] gh action: fix macos build --- .github/workflows/c-cpp.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 27e5ebe06..ca5998349 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -20,9 +20,6 @@ jobs: - name: Set up build environment (macos-latest) run: | brew install ccache flac libao libomp pulseaudio zlib - cd shell/apple - mkdir artifacts - brew install --build-from-source ./sdl2.rb echo "/usr/local/opt/ccache/libexec" >> $GITHUB_PATH echo "CCACHE_DIR=/tmp/ccache" >> $GITHUB_ENV if: matrix.config.os == 'macos-latest' @@ -49,6 +46,13 @@ jobs: - name: Create artifact directory run: mkdir -p build/artifact + - name: Build SDL (macos-latest) + run: | + cd shell/apple + mkdir artifacts + brew install --build-from-source ./sdl2.rb + if: matrix.config.os == 'macos-latest' + - name: CMake run: | cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=artifact ${{ matrix.config.cmakeArgs }}