Skip to content

ci: build the macOS head and publish an unsigned macOS nightly - #245

Merged
MemerGamer merged 3 commits into
mainfrom
ci/macos
Dec 5, 2026
Merged

MemerGamer merged 3 commits into
mainfrom
ci/macos

Conversation

@MemerGamer

Copy link
Copy Markdown
Owner

Adds macOS to CI and to the nightly, one PR, the Linux workflows untouched.

What is in here

  1. CI (.github/workflows/ci-macos.yml, new file) — a build-macos job on macos-latest (arm64) on main pushes and PRs targeting main. It builds Files.Platform.MacOS and the macOS desktop head (dotnet build src/Files.App -f net10.0-desktop -c Release -p:FilesDesktopOS=macOS) with the same NuGet-caching style as the Linux job. There is a clean test filter: the macOS classes (MacOSSidebarIconsTests, MacOSUserDirectoriesTests, MacOSFileTagsStoreTests, MacOSKeychainSecretStoreTests) plus the platform-independent BinaryPlistTests (Finder-tag plist parser) run via the MSTest runner filter --filter "FullyQualifiedName~MacOS|FullyQualifiedName~BinaryPlist". The rest of tests/Files.Platform.Tests is Linux-only at runtime (111 failures on macOS per PR Feature: macOS desktop head that builds and starts #233), so it stays on the Linux job. All macOS tests are pure logic or use a fake keychain, so nothing on the runner prompts.
  2. Nightly (nightly-linux.yml, extended) — a second build-macos job runs scripts/macos/publish.sh --zip and the publish step attaches LinuxFiles-nightly-macos-arm64.zip to the rolling nightly release next to the Linux assets. The zip contains an unsigned, not notarized LinuxFiles.app (no codesigning beyond the linker's automatic ad-hoc signature on arm64); the release notes tell users to unzip and right-click → Open. A SHA256SUMS asset in the same style as package-linux.yml now covers all three nightly assets (new for Linux assets too — the nightly previously had no checksums). A workflow_dispatch dry_run input replaces a throwaway nightly-dryrun release instead of the real one. The stable release flow (package-linux.yml) is deliberately untouched; adding a signed/notarized macOS artifact there is future work.
  3. Packaging — scripts/macos/publish.sh (dotnet publish -r osx-arm64 --self-contained, same trim/AOT defaults as scripts/linux/publish.sh, assembles artifacts/LinuxFiles.app, optional --zip via ditto) and packaging/macos/Info.plist (bundle id io.github.memergamer.LinuxFiles, executable Files, no icon yet). docs/linux-port/packaging.md gets a short macOS section.

cc @lextm — could you check that the CI job and scripts/macos/publish.sh match your local macOS setup (SDK per global.json 10.0.102 with rollForward: latestMajor, dotnet build src/Files.App -f net10.0-desktop)?

Known limits

  • The .app bundle has no icon, and osx-x64 is wired in the script but only arm64 is built/published.
  • The macOS zip only really publishes after this merges; before that it is validated with workflow_dispatch dry_run on this branch (results reported below).
  • macOS remains an experimental, unsupported target.

🤖 Generated with GLM via pi

- New ci-macos.yml: build-macos job on macos-latest (arm64) building the
  macOS desktop head in Release, plus the macOS-specific test classes of
  Files.Platform.Tests (the rest of the suite is Linux-only at runtime).
- nightly-linux.yml: second build job publishes an unsigned, not notarized
  LinuxFiles-nightly-macos-arm64.zip to the rolling nightly release, with a
  SHA256SUMS asset covering all nightly assets and a workflow_dispatch
  dry_run input that replaces a throwaway nightly-dryrun release instead.
- New scripts/macos/publish.sh + packaging/macos/Info.plist assemble the
  .app bundle; docs/linux-port/packaging.md documents the experimental,
  unsigned macOS target.
The publish step listed SHA256SUMS as an asset but no step created it
(the checksum step from package-linux.yml was not carried over), so the
dry-run publish failed with a missing file. Generate it from the three
downloaded assets first.
@MemerGamer

Copy link
Copy Markdown
Owner Author

Dry-run validation of the nightly publish path (workflow_dispatch with dry_run on this branch, run #47582938838): all three jobs green.

  • The throwaway nightly-dryrun release was created targeted at 1e7f28f with all four assets: LinuxFiles-nightly-linux-x64.tar.gz (82 MB), LinuxFiles-nightly-x86_64.AppImage (72 MB), LinuxFiles-nightly-macos-arm64.zip (79 MB) and SHA256SUMS (one sha256 line per asset, same style as package-linux.yml). The notes carried the dry-run banner and the unsigned-macOS instructions.
  • The real nightly release was never touched (verified before and after; the dry run deletes/recreates only nightly-dryrun, whose release and tag I removed afterwards).
  • CI on the current head (1e7f28f): Files CI (macOS) build-macos green — the head builds in Release and the filter runs 32 tests (5 macOS classes + BinaryPlistTests), all passing on macos-latest arm64; Nightly build-linux-x64, build-macos green, publish-nightly correctly skipped on the PR.

First dry run (#47581331696) failed in the publish step because no step generated SHA256SUMS; fixed by 1e7f28f and re-validated above.

One thing CI cannot verify without a Mac: opening the zipped LinuxFiles.app (Gatekeeper → right-click → Open, window renders). Bundle layout is the plain publish output in Contents/MacOS with CFBundleExecutable=Files, which is how the head is already run unpacked, so confidence is decent but not proven on desktop — @lextm could smoke-test the dry-run zip if he rebuilds it after merge.

macOS is experimental. A failed or cancelled macOS build now only drops
the macOS zip from the nightly, with a note in the release text, instead of
blocking the Linux assets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MemerGamer
MemerGamer merged commit d638b34 into main Dec 5, 2026
4 checks passed
@MemerGamer
MemerGamer deleted the ci/macos branch December 5, 2026 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant