Skip to content

Commit

Permalink
Feature: Create Universal (x86_64 + Apple Silicon) build on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
orudge committed Nov 12, 2020
1 parent 8e4a3a0 commit a7d2390
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci-build.yml
Expand Up @@ -107,17 +107,22 @@ jobs:
macos:
name: Mac OS

runs-on: macos-latest
runs-on: macos-11.0
strategy:
fail-fast: false
env:
CTEST_OUTPUT_ON_FAILURE: 1
MACOSX_DEPLOYMENT_TARGET: 10.9
DEVELOPER_DIR: /Applications/Xcode_12.2.app/Contents/Developer
ONLY_ACTIVE_ARCH: NO

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Switch to Xcode 12.2
run: sudo xcode-select -s /Applications/Xcode_12.2.app

- name: Install dependencies
run: brew install pkg-config lzo xz libpng freetype
env:
Expand All @@ -132,7 +137,7 @@ jobs:
rm -f opengfx-all.zip
- name: CMake
run: mkdir build && cd build && cmake ..
run: mkdir build && cd build && cmake .. -DCMAKE_OSX_ARCHITECTURES=arm64;x86_64

- uses: ammaraskar/gcc-problem-matcher@master
- name: Build
Expand Down

0 comments on commit a7d2390

Please sign in to comment.