Skip to content

Commit

Permalink
feat: Update release workflow to build and upload both arm64 and x64 …
Browse files Browse the repository at this point in the history
…versions for macOS
  • Loading branch information
weswalla committed Sep 7, 2024
1 parent 04a69be commit e2eb56d
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@ jobs:
upload-assets:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
# - windows-latest
include:
- os: ubuntu-latest
- os: macos-latest
arch: x64
- os: macos-latest
arch: arm64
# - os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -75,7 +78,11 @@ jobs:
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
DEBUG: electron-osx-sign*,electron-notarize*
run: |
yarn run build
if [[ "${{ matrix.os }}" == "macos-latest" ]]; then
yarn run build -- --arch=${{ matrix.arch }}
else
yarn run build
fi
shell: bash
- name: upload binary (ubuntu only)
if: ${{ runner.os == 'Linux' }}
Expand All @@ -88,7 +95,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload "${GITHUB_REF#refs/tags/}" "electron/out/Acorn.11.0.1.darwin-x64.zip" --clobber
if [[ "${{ matrix.arch }}" == "x64" ]]; then
gh release upload "${GITHUB_REF#refs/tags/}" "electron/out/Acorn.11.0.1.darwin-x64.zip" --clobber
else
gh release upload "${GITHUB_REF#refs/tags/}" "electron/out/Acorn.11.0.1.darwin-arm64.zip" --clobber
fi
- name: upload binary (Windows only)
if: ${{ runner.os == 'Windows' }}
env:
Expand Down

0 comments on commit e2eb56d

Please sign in to comment.