mirror of
https://github.com/reactos/ninja.git
synced 2024-11-26 21:20:23 +00:00
GitHub Actions: Build Universal Binary for macOS
This commit is contained in:
parent
a30ccaef73
commit
242b7dd900
9
.github/workflows/macos.yml
vendored
9
.github/workflows/macos.yml
vendored
@ -8,7 +8,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macOS-latest
|
||||
runs-on: macos-11.0
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@ -21,8 +21,9 @@ jobs:
|
||||
env:
|
||||
MACOSX_DEPLOYMENT_TARGET: 10.12
|
||||
run: |
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -B build
|
||||
cmake --build build --parallel --config Release
|
||||
sudo xcode-select -s /Applications/Xcode_12.2.app
|
||||
cmake -Bbuild -GXcode '-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64'
|
||||
cmake --build build --config Release
|
||||
|
||||
- name: Test ninja
|
||||
run: ctest -vv
|
||||
@ -32,7 +33,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir artifact
|
||||
7z a artifact/ninja-mac.zip ./build/ninja
|
||||
7z a artifact/ninja-mac.zip ./build/Release/ninja
|
||||
|
||||
# Upload ninja binary archive as an artifact
|
||||
- name: Upload artifact
|
||||
|
Loading…
Reference in New Issue
Block a user