gh action: fix macos build

This commit is contained in:
Flyinghead 2021-05-19 11:29:38 +02:00
parent 3a1ae0db00
commit 041e29d1ae
1 changed files with 7 additions and 3 deletions

View File

@ -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 }}