Repository navigation
ci(macos): fix retired runner, test the DMG on a real menu bar before publishing (#165) - #186
Merged
Merged
Conversation
A workflow_dispatch with publish=false builds and uploads the DMG as a workflow artifact without creating or touching a GitHub release, so a test build can be tried before the first real tag (#165). Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
…lishing A test-app job installs the built DMG on a fresh macos-15 runner and drives the real menu-bar item through Accessibility (packaging/macos/test/test-app.sh): menu items, LAN toggle on/off, restart, open decks folder / surface, quit, upgrade in place, and a screenshot of the first-run System Events prompt. Publishing now waits on it, and PRs touching the app run build + test. The runner image already grants Accessibility / Screen Recording to bash; --pregrant writes deckd's own TCC grants so its consent prompt doesn't block System Events. Also runnable on a real Mac via just test-macos-app. Co-Authored-By: Claude <noreply@anthropic.com>
… document test-app Co-Authored-By: Claude <noreply@anthropic.com>
…moved to Co-Authored-By: Claude <noreply@anthropic.com>
jonocodes
force-pushed
the
ci/macos-dmg-dry-run
branch
from
November 14, 2026 20:25
1bf603b to
1e9c7a9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #165. The macOS release workflow had never run. Its first run showed it was broken on
main. This PR fixes that, and adds a job that installs the DMG and clicks through the real menu-bar item before anything is published, on GitHub's freemacos-15runner.Summary
flowchart LR T[v* tag / manual run / PR] --> D["dmg<br/>(macos-15)<br/>just build-macos-dmg<br/>hdiutil verify"] D --> A["test-app<br/>(fresh macos-15)<br/>test-app.sh --pregrant"] A --> P["publish<br/>(ubuntu, contents: write)<br/>tags + publish=true only"]macos-14→macos-15: GitHub has retired themacos-14image, so anyv*tag onmaincancels the job before any step runs.publishinput: with it unticked, a manual run builds and tests the DMG without creating a release. Pull requests touching the app run build + test and never publish. Onlypublishhascontents: write.test-appjob runspackaging/macos/test/test-app.sh, which is alsojust test-macos-appon a real Mac:It works on hosted runners because they have a real logged-in desktop, and the image grants Accessibility and Screen Recording to
bashandosascript. Without--pregrant, deckd's own "wants to control System Events" prompt stays on screen and every System Events call times out. That's what happened on the first probe run.Evidence
macos-14), run 43459845670: cancelled after 1s,The configuration 'macos-14-arm64-us-default' is not supported.dmg✓,test-app✓ (20/20 checks),publishskipped.probe/macos-gui(runs 43461493467 → 43462496258).Not covered by CI:
spctlresult is only logged, informational.Merge Danger
Door: two-way
Only CI configuration, a test script and docs change. Reverting restores the old workflow (with the dead runner).
Blast Radius: release-only
test-appnow blocks publishing. That's intended, but a flaky GUI check would hold up a release until it's re-run.packaging/macos/**or the macOS daemon modules now spend about 6 runner-minutes on macOS. That's free for public repos.macos-15comes with a newer toolchain. Nobody has run a DMG yet, so no user can be affected.Screenshots (from the test-app job on GitHub's macos-15 runner)
Real HID click on the status item: the menu
Open decks folder → Finder
Open deckd surface → Safari loads the password screen
First launch without grants: the System Events consent prompt with deckd's usage text