Skip to content

Commit

Permalink
ci: Apple silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylogmon committed Mar 13, 2023
1 parent 85fad1d commit db1fa50
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [ ubuntu-latest, windows-latest]
platform: [ ubuntu-latest, macos-latest, windows-latest]
include:
- platform: ubuntu-latest
bundle: deb
Expand Down Expand Up @@ -89,6 +89,11 @@ jobs:
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: install dependencies (mac only)
if: matrix.platform == 'macos-latest'
run: |
rustup target add aarch64-apple-darwin
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
Expand All @@ -98,6 +103,14 @@ jobs:
run: pnpm install

- name: Build and Package
if: matrix.platform == 'macos-latest'
run: |
pnpm tauri build --target aarch64-apple-darwin
pnpm tauri build --target x86_64-apple-darwin
pnpm tauri build --target universal-apple-darwin
- name: Build and Package
if: matrix.platform != 'macos-latest'
run: pnpm tauri build

- name: Upload Artifacts
Expand Down

0 comments on commit db1fa50

Please sign in to comment.