summaryrefslogtreecommitdiff
path: root/.github/workflows/release-macos.yml
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-09-28 13:42:40 -0700
committerGitHub <noreply@github.com>2022-09-28 13:42:40 -0700
commiteb5c6b93543ca1423117045dbbfee0b6f653d392 (patch)
treebef912602dc22b2ac624eb5630450d8303e43e0f /.github/workflows/release-macos.yml
parent7708d205cb186f2b95d8daa2d8e0c655488fc34a (diff)
Make github CI build aarch64 binaries on release. (#2417)
Diffstat (limited to '.github/workflows/release-macos.yml')
-rw-r--r--.github/workflows/release-macos.yml30
1 files changed, 16 insertions, 14 deletions
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