Skip to content

Commit

Permalink
chore: fix missing macOS aarch64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
keiko233 committed Dec 6, 2023
1 parent 4dbe309 commit a3cb48b
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
key: ${{ matrix.os }}

- name: Install the missing rust target (macOS Only)
if: startsWith(matrix.os, 'macos-')
run: |
rustup target add aarch64-apple-darwin
- name: Install Node
uses: actions/setup-node@v3
Expand Down Expand Up @@ -67,7 +73,7 @@ jobs:
tauriScript: pnpm
args: -f default-meta

- name: Portable Bundle
- name: Portable Bundle (Windows Only)
if: matrix.os == 'windows-latest'
run: |
pnpm portable
Expand All @@ -77,6 +83,21 @@ jobs:
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
VITE_WIN_PORTABLE: 1

- name: Pnpm check (macOS aarch64)
if: startsWith(matrix.os, 'macos-')
run: |
pnpm check --arch arm64 --sidecar-host aarch64-apple-darwin
- name: Tauri build with Upload (macOS aarch64)
if: startsWith(matrix.os, 'macos-')
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
run: |
pnpm build --target aarch64-apple-darwin
pnpm upload:osx-aarch64
release-update:
needs: release
runs-on: ubuntu-latest
Expand Down

0 comments on commit a3cb48b

Please sign in to comment.