Skip to content

Commit f3dbecf

Browse files
committed
ci: diagnose targeted macos x64 builds
1 parent 9bd71ff commit f3dbecf

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,45 @@ jobs:
239239
echo "$CHANGELOG" >> $GITHUB_OUTPUT
240240
echo "EOF" >> $GITHUB_OUTPUT
241241
242+
- name: Build targeted macOS x64 bundle
243+
if: github.event_name == 'workflow_dispatch' && matrix.target == 'x86_64-apple-darwin'
244+
shell: bash
245+
env:
246+
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
247+
APPLE_ID: ${{ secrets.APPLE_ID }}
248+
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
249+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
250+
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
251+
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
252+
run: pnpm tauri build --target ${{ matrix.target }} --verbose
253+
254+
- name: Upload targeted macOS x64 assets
255+
if: github.event_name == 'workflow_dispatch' && matrix.target == 'x86_64-apple-darwin'
256+
shell: bash
257+
env:
258+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
259+
run: |
260+
TAG="${{ steps.get-tag.outputs.tag }}"
261+
BUNDLE_DIR="src-tauri/target/${{ matrix.target }}/release/bundle"
262+
shopt -s globstar nullglob
263+
assets=(
264+
"$BUNDLE_DIR"/**/*.dmg
265+
"$BUNDLE_DIR"/**/*.app.tar.gz
266+
"$BUNDLE_DIR"/**/*.sig
267+
)
268+
269+
if [ "${#assets[@]}" -eq 0 ]; then
270+
echo "No assets found in $BUNDLE_DIR" >&2
271+
find "$BUNDLE_DIR" -type f -print >&2 || true
272+
exit 1
273+
fi
274+
275+
printf 'Uploading assets:\n'
276+
printf ' %s\n' "${assets[@]}"
277+
gh release upload "$TAG" "${assets[@]}" --clobber
278+
242279
- uses: tauri-apps/tauri-action@v0
280+
if: github.event_name != 'workflow_dispatch' || matrix.target != 'x86_64-apple-darwin'
243281
env:
244282
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
245283
# macOS signing

0 commit comments

Comments
 (0)