Skip to content

Commit 651a551

Browse files
authored
fix: replace deprecated macos-13 runner with split per-arch jobs on macos-latest (#49)
macos-13 was deprecated by GitHub and immediately cancelled the v0.5.8 build. This replaces the single universal binary job with two parallel per-architecture jobs following the official tauri-action recommendation: - macos-latest --target aarch64-apple-darwin (Apple Silicon) - macos-latest --target x86_64-apple-darwin (Intel) Each job notarizes a ~50% smaller binary, cutting notarization time in half and reducing the window for the runner network drop that caused the original timeout failure on v0.5.7. Also upgrades tauri-apps/tauri-action@v0 -> @v1 (current stable) and adds retryAttempts: 3 to handle any remaining transient notarization failures automatically.
1 parent 5e110ce commit 651a551

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,19 +104,23 @@ jobs:
104104
artifacts/checksums-sha256.txt
105105
106106
build-desktop:
107-
name: Build Desktop (${{ matrix.platform }})
107+
name: Build Desktop (${{ matrix.platform }} ${{ matrix.args }})
108108
needs: release
109109
timeout-minutes: 90
110110
strategy:
111111
fail-fast: false
112112
matrix:
113113
include:
114-
# macos-latest resolves to macos-15-arm64 which has network instability
115-
# on long-running jobs (notarization polls Apple for 30-50 min).
116-
# Pin to macos-13 (x86_64, Ventura) for a stable network environment.
117-
- platform: macos-13
118-
args: --target universal-apple-darwin
119-
rust-targets: aarch64-apple-darwin,x86_64-apple-darwin
114+
# Two separate macOS jobs (arm64 + x86_64) instead of one universal
115+
# binary job. Each job notarizes a ~50% smaller binary, cutting
116+
# notarization time and reducing exposure to runner network drops.
117+
# macos-13 was deprecated; macos-latest is the supported runner.
118+
- platform: macos-latest
119+
args: --target aarch64-apple-darwin
120+
rust-targets: aarch64-apple-darwin
121+
- platform: macos-latest
122+
args: --target x86_64-apple-darwin
123+
rust-targets: x86_64-apple-darwin
120124
- platform: windows-latest
121125
args: ''
122126
rust-targets: ''
@@ -173,7 +177,7 @@ jobs:
173177
mv node_modules "$GITHUB_WORKSPACE/apps/reasondb-client/node_modules"
174178
175179
- name: Build and release (Tauri)
176-
uses: tauri-apps/tauri-action@v0
180+
uses: tauri-apps/tauri-action@v1
177181
env:
178182
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
179183
RUSTC_WRAPPER: ''
@@ -191,10 +195,11 @@ jobs:
191195
releaseBody: |
192196
See the assets below to download and install ReasonDB ${{ github.ref_name }}.
193197
194-
**macOS:** Download the `.dmg` file and drag ReasonDB into your Applications folder.
198+
**macOS:** Download the `.dmg` for your chip (`aarch64` = Apple Silicon M1+, `x86_64` = Intel) and drag ReasonDB into your Applications folder.
195199
**Windows:** Download the `.msi` or `.exe` installer and run it.
196200
releaseDraft: false
197201
prerelease: false
202+
retryAttempts: 3
198203
args: ${{ matrix.args }}
199204

200205
update-homebrew:

0 commit comments

Comments
 (0)