Repository navigation
Build kissat for macOS 11.0 and check the bundle's minimum macOS - #5161
Conversation
The bundled kissat is built from source on the release runner, so it targets the runner's macOS. Since the x86_64 bundle moved to macos-15-intel (model-checking#4442), its kissat requires macOS 15.0, and with model-checking#5138 the aarch64 kissat does too (0.68.0 shipped one requiring 14.0). Every other binary in the bundle targets 11.0. Set MACOSX_DEPLOYMENT_TARGET=11.0 for the kissat build on macOS, and fail the macOS bundle builds when any bundled binary requires a newer macOS, so the next runner upgrade cannot drop support silently. Signed-off-by: Felipe R. Monteiro <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The compatibility check scans only bin files, missing bundled Mach-O libraries that could require a newer macOS and fail to load on macOS 11.0.
1 open issue
What changed in this PR
This PR preserves macOS 11.0 compatibility for Kani release bundles as CI runners move to newer macOS versions.
Changes:
- Sets the macOS deployment target to 11.0 when building kissat.
- Adds a macOS bundle check that rejects binaries declaring a minimum version newer than 11.0.
| File | Description |
|---|---|
scripts/setup/install_kissat.sh |
Targets macOS 11.0 for kissat builds on macOS. |
.github/actions/build-bundle/action.yml |
Checks bundled executables’ minimum macOS versions before packaging. |
Review effort: Balanced
The check only looked at bin/, so a proc-macro dylib under lib/, playback/lib/ or no_core/lib/ that requires a newer macOS would pass and then fail to load on macOS 11.0. Scan every regular file in the bundle, keeping the Mach-O filter, and print paths relative to the bundle root so libraries with the same name in different folders can be told apart. Signed-off-by: Felipe R. Monteiro <[email protected]>
rajath-mk
left a comment
There was a problem hiding this comment.
Looks good. I ran the minos extraction against sample otool -l output (LC_BUILD_VERSION, legacy LC_VERSION_MIN_MACOSX, no version command, and a fat binary) and it picks the right value each time, including ignoring the tool … version lines. I also checked the CBMC binaries the bundle copies: the Intel Sonoma bottle that main now installs (from #5214) is minos 10.15 and the arm64_sequoia bottle is 11.0, so both pass. This branch predates that fix, so it needs main merged in for the Intel bundle job to go green.

The release bundle's
kissatis built from source on the release runner (scripts/setup/install_kissat.sh). With no deployment target set, the compiler targets the runner's own macOS version. Every other bundled binary targets macOS 11.0, but kissat now requires a newer macOS:kissatminimum macOSmacos-14macos-15macos-15-intel(since #4442)(These were read from each binary's
LC_BUILD_VERSION/LC_VERSION_MIN_MACOSX.) The next release would therefore ship a kissat that fails to load on macOS 14 and older.This PR:
MACOSX_DEPLOYMENT_TARGET=11.0for the kissat build on macOS, matching rustc's default for both macOS targets;build-bundleaction that fails a macOS bundle build if any bundled binary requires a macOS newer than 11.0, so a future runner upgrade cannot drop support silently.Testing: the
BuildBundle-MacOs-x86_64job in this PR's CI runs the new check.BuildBundle-MacOs-aarch64still runs on the retiredmacos-14runner until #5138 merges, so the aarch64 bundle is checked after that. The version comparison was tested locally against sampleotool -loutput.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.