Skip to content

Commit

Permalink
github: build-darwin: 使用 CMAKE_OSX_ARCHITECTURES 指定目标平台
Browse files Browse the repository at this point in the history
Signed-off-by: xychen <[email protected]>
  • Loading branch information
xychen committed May 7, 2024
1 parent 3be8100 commit bc7faaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ jobs:
strategy:
matrix:
include:
- { name: darwin-x64, target: x86_64-apple-macos }
- { name: darwin-arm64, target: arm64-apple-macos }
- { name: darwin-x64, arch: x86_64 }
- { name: darwin-arm64, arch: arm64 }

steps:
- uses: actions/checkout@v2
Expand All @@ -96,7 +96,7 @@ jobs:
- name: Build
uses: ./.github/actions/cmake-build
env:
CFLAGS: -target ${{ matrix.target }}
CMAKE_OSX_ARCHITECTURES: ${{ matrix.arch }}

- name: Upload artifacts
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit bc7faaf

Please sign in to comment.