From eb5c6b93543ca1423117045dbbfee0b6f653d392 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 28 Sep 2022 13:42:40 -0700 Subject: Make github CI build aarch64 binaries on release. (#2417) --- .github/workflows/release-macos.yml | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to '.github/workflows/release-macos.yml') diff --git a/.github/workflows/release-macos.yml b/.github/workflows/release-macos.yml index 1c8a33dd8..663230f5f 100644 --- a/.github/workflows/release-macos.yml +++ b/.github/workflows/release-macos.yml @@ -15,7 +15,23 @@ jobs: configuration: ['release'] # 'debug' compiler: ['clang'] platform: ['x64'] + targetPlatform: ['x64', 'aarch64'] steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + submodules: 'true' + fetch-depth: '0' + - name: Build release project + id: build + run: | + echo "starting to build..." + export CC=${{matrix.compiler}} + export CONFIGURATION=${{matrix.configuration}} + export ARCH=${{matrix.platform}} + export TARGETARCH=${{matrix.targetPlatform}} + echo "building..." + source ./github_macos_build.sh - name: "Import signing certificate" env: BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }} @@ -45,20 +61,6 @@ jobs: brew install mitchellh/gon/gon security find-identity -v brew install coreutils - - name: Checkout code - uses: actions/checkout@v2 - with: - submodules: 'true' - fetch-depth: '0' - - name: Build release project - id: build - run: | - echo "starting to build..." - export CC=${{matrix.compiler}} - export CONFIGURATION=${{matrix.configuration}} - export ARCH=${{matrix.platform}} - echo "building..." - source ./github_macos_build.sh - name: Sign binaries env: IDENTITY_ID: d6ada82a113e4204aaad914e1013e9548ffd30d0 -- cgit v1.2.3