diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index f9fa30d4c1..f793157d76 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -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 @@ -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: @@ -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