@@ -194,15 +194,61 @@ jobs:
194194 uses : ./.github/actions/setup-desktop-build
195195
196196 - name : Build desktop installers (macOS)
197+ id : build_macos
198+ continue-on-error : true
197199 env :
198200 ASTRBOT_SOURCE_GIT_URL : ${{ needs.resolve_build_context.outputs.source_git_url }}
199201 ASTRBOT_SOURCE_GIT_REF : ${{ needs.resolve_build_context.outputs.source_git_ref }}
200202 ASTRBOT_DESKTOP_CRYPTOGRAPHY_FALLBACK_VERSIONS : ${{ vars.ASTRBOT_DESKTOP_CRYPTOGRAPHY_FALLBACK_VERSIONS || '' }}
201203 GITHUB_TOKEN : ${{ github.token }}
202204 GH_TOKEN : ${{ github.token }}
203- run : cargo tauri build --target ${{ matrix.target }}
205+ run : cargo tauri build --verbose --target ${{ matrix.target }}
206+
207+ - name : Dump macOS bundling diagnostics
208+ if : steps.build_macos.outcome == 'failure'
209+ shell : bash
210+ run : |
211+ set -euo pipefail
212+
213+ dmg_dir="src-tauri/target/${{ matrix.target }}/release/bundle/dmg"
214+ script_path="${dmg_dir}/bundle_dmg.sh"
215+
216+ echo "::group::DMG output directory listing"
217+ ls -la "${dmg_dir}" || true
218+ echo "::endgroup::"
219+
220+ if [ -f "${script_path}" ]; then
221+ echo "::group::bundle_dmg.sh"
222+ nl -ba "${script_path}" || cat "${script_path}"
223+ echo "::endgroup::"
224+
225+ echo "::group::bundle_dmg.sh trace (bash -x)"
226+ (
227+ cd "${dmg_dir}"
228+ bash -x ./bundle_dmg.sh
229+ ) || true
230+ echo "::endgroup::"
231+ else
232+ echo "bundle_dmg.sh not found at ${script_path}"
233+ fi
234+
235+ echo "::group::System diagnostics"
236+ uname -a || true
237+ sw_vers || true
238+ xcodebuild -version || true
239+ df -h || true
240+ hdiutil info || true
241+ echo "::endgroup::"
242+
243+ - name : Fail macOS build when bundling fails
244+ if : steps.build_macos.outcome == 'failure'
245+ shell : bash
246+ run : |
247+ echo "macOS build failed, diagnostics are printed above."
248+ exit 1
204249
205250 - name : Verify macOS DMG integrity
251+ if : steps.build_macos.outcome == 'success'
206252 shell : bash
207253 run : |
208254 set -euo pipefail
@@ -219,6 +265,7 @@ jobs:
219265 done
220266
221267 - name : Upload artifacts
268+ if : steps.build_macos.outcome == 'success'
222269 uses : actions/upload-artifact@v6.0.0
223270 with :
224271 name : astrbot-desktop-tauri-${{ needs.resolve_build_context.outputs.astrbot_version }}-macos-${{ matrix.arch }}
0 commit comments