|
64 | 64 | matrix:
|
65 | 65 | include:
|
66 | 66 | # Arm based macs (M1 and above).
|
67 |
| - - tauri-target: aarch64-apple-darwin |
| 67 | + - bundle-type: aarch64-apple-darwin |
| 68 | + rust-targets: aarch64-apple-darwin |
68 | 69 | # Intel based macs.
|
69 |
| - - tauri-target: x86_64-apple-darwin |
| 70 | + - bundle-type: x86_64-apple-darwin |
| 71 | + rust-targets: x86_64-apple-darwin |
| 72 | + # Universal |
| 73 | + - bundle-type: universal-apple-darwin |
| 74 | + rust-targets: aarch64-apple-darwin,x86_64-apple-darwin |
70 | 75 | runs-on: macos-latest
|
71 | 76 | env:
|
72 | 77 | APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
|
|
76 | 81 | - uses: actions/checkout@v4
|
77 | 82 | - uses: ./.github/actions/install-rust
|
78 | 83 | with:
|
79 |
| - targets: aarch64-apple-darwin,x86_64-apple-darwin |
| 84 | + targets: ${{ matrix.rust-targets }} |
80 | 85 | - uses: ./.github/actions/install-tauri
|
81 | 86 | - uses: ./.github/actions/install-xcode
|
82 | 87 | - uses: ./.github/actions/install-node
|
|
92 | 97 | pnpm build
|
93 | 98 | - name: Build macOS app
|
94 | 99 | run: |
|
95 |
| - pnpm tauri build --verbose --target ${{ matrix.tauri-target }} |
| 100 | + pnpm tauri build --verbose --target ${{ matrix.bundle-type }} |
| 101 | + - name: Release |
| 102 | + uses: softprops/action-gh-release@v2 |
| 103 | + with: |
| 104 | + draft: true |
| 105 | + files: | |
| 106 | + ./src-tauri/target/aarch64-apple-darwin/release/bundle/**/*.dmg |
| 107 | + ./src-tauri/target/aarch64-apple-darwin/release/bundle/**/*.app |
| 108 | + ./src-tauri/target/aarch64-apple-darwin/release/bundle/**/*.tar.gz |
| 109 | + ./src-tauri/target/aarch64-apple-darwin/release/bundle/**/*.tar.gz.sig |
| 110 | + ./src-tauri/target/x86_64-apple-darwin/release/bundle/**/*.dmg |
| 111 | + ./src-tauri/target/x86_64-apple-darwin/release/bundle/**/*.app |
| 112 | + ./src-tauri/target/x86_64-apple-darwin/release/bundle/**/*.tar.gz |
| 113 | + ./src-tauri/target/x86_64-apple-darwin/release/bundle/**/*.tar.gz.sig |
| 114 | + make_latest: true |
| 115 | + name: App v0.0.1-alpha |
| 116 | + tag_name: app-v0.0.1-alpha |
| 117 | + target_commitish: ${{ github.sha }} |
96 | 118 | build-desktop-windows:
|
97 | 119 | runs-on: windows-latest
|
98 | 120 | steps:
|
@@ -193,4 +215,4 @@ jobs:
|
193 | 215 | - build-mobile-android
|
194 | 216 | - build-mobile-ios
|
195 | 217 | steps:
|
196 |
| - - run: echo "Release" |
| 218 | + - run: echo 'Release' |
0 commit comments