From bc7faaf150d8a5f89303702c0bb1de3f6741901d Mon Sep 17 00:00:00 2001 From: xychen Date: Wed, 8 May 2024 01:33:23 +0800 Subject: [PATCH] =?UTF-8?q?github:=20build-darwin:=20=E4=BD=BF=E7=94=A8=20?= =?UTF-8?q?CMAKE=5FOSX=5FARCHITECTURES=20=E6=8C=87=E5=AE=9A=E7=9B=AE?= =?UTF-8?q?=E6=A0=87=E5=B9=B3=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xychen --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 811ab2b..bb75a28 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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