tauri-action icon indicating copy to clipboard operation
tauri-action copied to clipboard

It looks `TAURI_BUNDLER_DMG_IGNORE_CI:true` is incompatible with Provisioner version 20250619.349 or later

Open anatawa12 opened this issue 6 months ago • 4 comments

It looks TAURI_BUNDLER_DMG_IGNORE_CI:true is incompatible with Provisioner version 20250619.349 or later, and tauri-action will freeze while Running AppleScript to make Finder stuff pretty: in bundle_dmg.sh.

One example of the failure CI run here

You can see the version of the Provisioner from the "Set up Job" step of the workflow run.

It looks Provisioner 20250619.349 is not deployed fully yet so some repositories are not affected yet. I tried on another repository but I could not reproduce since Provisioner version was 2.325.0.

I copy & paste run log since actions log will be removed after 90 days
Fri, 20 Jun 2025 04:28:59 GMT ✓ built in 12.46s
Fri, 20 Jun 2025 04:29:00 GMT      Running [tauri_cli] Command `cargo  build --bins --features tauri/custom-protocol --release --target aarch64-apple-darwin`
Fri, 20 Jun 2025 04:29:00 GMT    Compiling vrc-get-gui v1.1.1-beta.0+3d50d4c (/Users/runner/work/vrc-get/vrc-get/vrc-get-gui)
Fri, 20 Jun 2025 04:29:00 GMT    Compiling vrc-get-vpm v0.0.15-beta.0 (/Users/runner/work/vrc-get/vrc-get/vrc-get-vpm)
Fri, 20 Jun 2025 04:30:16 GMT     Finished `release` profile [optimized] target(s) in 1m 16s
Fri, 20 Jun 2025 04:30:16 GMT      Running [tauri_cli] Command `cargo  build --bins --features tauri/custom-protocol --release --target x86_64-apple-darwin`
Fri, 20 Jun 2025 04:30:17 GMT    Compiling vrc-get-gui v1.1.1-beta.0+3d50d4c (/Users/runner/work/vrc-get/vrc-get/vrc-get-gui)
Fri, 20 Jun 2025 04:30:17 GMT    Compiling vrc-get-vpm v0.0.15-beta.0 (/Users/runner/work/vrc-get/vrc-get/vrc-get-vpm)
Fri, 20 Jun 2025 04:31:24 GMT     Finished `release` profile [optimized] target(s) in 1m 07s
Fri, 20 Jun 2025 04:31:24 GMT      Running [tauri_cli] Command `lipo  -create -output /Users/runner/work/vrc-get/vrc-get/target/universal-apple-darwin/release/ALCOM /Users/runner/work/vrc-get/vrc-get/target/aarch64-apple-darwin/release/ALCOM /Users/runner/work/vrc-get/vrc-get/target/x86_64-apple-darwin/release/ALCOM`
Fri, 20 Jun 2025 04:31:25 GMT        Built [tauri_cli::build] application at: /Users/runner/work/vrc-get/vrc-get/target/universal-apple-darwin/release/ALCOM
Fri, 20 Jun 2025 04:31:25 GMT     Bundling [tauri_bundler::bundle::macos::app] ALCOM.app (/Users/runner/work/vrc-get/vrc-get/target/universal-apple-darwin/release/bundle/macos/ALCOM.app)
Fri, 20 Jun 2025 04:31:25 GMT     Bundling [tauri_bundler::bundle::macos::dmg] ALCOM_1.1.1-beta.0_universal.dmg (/Users/runner/work/vrc-get/vrc-get/target/universal-apple-darwin/release/bundle/dmg/ALCOM_1.1.1-beta.0_universal.dmg)
Fri, 20 Jun 2025 04:31:25 GMT      Running [tauri_bundler::bundle::macos::dmg] bundle_dmg.sh
Fri, 20 Jun 2025 04:31:25 GMT      Running [tauri_bundler::utils] Command `/Users/runner/work/vrc-get/vrc-get/target/universal-apple-darwin/release/bundle/dmg/bundle_dmg.sh  --volname ALCOM --icon ALCOM.app 180 170 --app-drop-link 480 170 --window-size 660 400 --hide-extension ALCOM.app --volicon /Users/runner/work/vrc-get/vrc-get/target/universal-apple-darwin/release/bundle/dmg/icon.icns ALCOM_1.1.1-beta.0_universal.dmg ALCOM.app`
Fri, 20 Jun 2025 04:31:25 GMT Creating disk image...
Fri, 20 Jun 2025 04:31:29 GMT created: /Users/runner/work/vrc-get/vrc-get/target/universal-apple-darwin/release/bundle/macos/rw.21164.ALCOM_1.1.1-beta.0_universal.dmg
Fri, 20 Jun 2025 04:31:29 GMT Mounting disk image...
Fri, 20 Jun 2025 04:31:29 GMT Device name:     /dev/disk4
Fri, 20 Jun 2025 04:31:29 GMT Searching for mounted interstitial disk image using /dev/disk4s...
Fri, 20 Jun 2025 04:31:29 GMT Mount dir:       /Volumes/dmg.EWg1Rf
Fri, 20 Jun 2025 04:31:29 GMT Making link to Applications dir...
Fri, 20 Jun 2025 04:31:29 GMT /Volumes/dmg.EWg1Rf
Fri, 20 Jun 2025 04:31:30 GMT Copying volume icon file '/Users/runner/work/vrc-get/vrc-get/target/universal-apple-darwin/release/bundle/dmg/icon.icns'...
Fri, 20 Jun 2025 04:31:30 GMT Will sleep for 2 seconds to workaround occasions "Can't get disk (-1728)" issues...
Fri, 20 Jun 2025 04:31:32 GMT Running AppleScript to make Finder stuff pretty: /usr/bin/osascript "/var/folders/y6/nj790rtn62lfktb1sh__79hc0000gn/T/createdmg.tmp.XXXXXXXXXX.uoS4eyLO0c" "dmg.EWg1Rf"
Fri, 20 Jun 2025 04:33:33 GMT /var/folders/y6/nj790rtn62lfktb1sh__79hc0000gn/T/createdmg.tmp.XXXXXXXXXX.uoS4eyLO0c:394:406: execution error: Finder got an error: AppleEvent timed out. (-1712)
Fri, 20 Jun 2025 04:33:33 GMT Failed running AppleScript
Fri, 20 Jun 2025 04:33:33 GMT Unmounting disk image...
Fri, 20 Jun 2025 04:33:33 GMT "disk4" ejected.
Fri, 20 Jun 2025 04:33:33 GMT failed to bundle project: error running bundle_dmg.sh: `failed to run /Users/runner/work/vrc-get/vrc-get/target/universal-apple-darwin/release/bundle/dmg/bundle_dmg.sh`
Fri, 20 Jun 2025 04:33:33 GMT        Error [tauri_cli_node] failed to bundle project: error running bundle_dmg.sh: `failed to run /Users/runner/work/vrc-get/vrc-get/target/universal-apple-darwin/release/bundle/dmg/bundle_dmg.sh`

Related discussion on github actions side: https://github.com/orgs/community/discussions/163491

anatawa12 avatar Jun 20 '25 13:06 anatawa12

I manually set TAURI_BUNDLER_DMG_IGNORE_CI: false and it works as a workaround.

https://github.com/vrc-get/vrc-get/actions/runs/15780235948/workflow?pr=2321#L12

anatawa12 avatar Jun 20 '25 13:06 anatawa12

thanks for the report. will monitor this and set it to false in the action if we see this issue spreading.

FabianLars avatar Jun 20 '25 21:06 FabianLars

@anatawa12 @FabianLars I was able to resolve the build issue by switching the runner from macos-latest (macOS 14) to macos-15. https://github.com/ahamana/tauri-app/commit/7cbe59931f08f1336ce9de73c9156df428472279

ahamana avatar Jun 23 '25 02:06 ahamana

It looks macos-15 in your repository uses Provisinor version 2.0.437 so it might be work as temporal workaround but it might be problematic again when Provisinor version is upgraded. However having temporal workaround is good thing. Thank you for let me know.

anatawa12 avatar Jun 23 '25 03:06 anatawa12

GtiHub Support told me that https://github.com/actions/runner-images/issues/12482 is a public issue of this problem.

GitHub says the fix is being deployed

anatawa12 avatar Jul 02 '25 01:07 anatawa12

https://github.com/actions/runner-images/issues/12482 is closed. I think this issue can also be closed.

anatawa12 avatar Jul 02 '25 10:07 anatawa12

i appreciate you keeping track of this issue like this, thanks :)

FabianLars avatar Jul 02 '25 10:07 FabianLars