Skip to content

CI action updates, runner updates, CMake 4 fixes#70

Open
ryandesign wants to merge 4 commits into
ksherlock:masterfrom
ryandesign:ci
Open

CI action updates, runner updates, CMake 4 fixes#70
ryandesign wants to merge 4 commits into
ksherlock:masterfrom
ryandesign:ci

Conversation

@ryandesign

Copy link
Copy Markdown
Contributor

CI and CMake improvements continuing from ksherlock/libsane#2:

  • Remove obsolete macOS 12 and 13 runners; add macOS 15 runner. Note this is now arm64 instead of x86_64.
  • Upgrade checkout and upload-artifact actions to latest versions because the old ones are deprecated.
  • Increase minimum CMake version to 3.5 to fix build failure with CMake 4.
  • Update libsane submodule to get the same CMake 4 fix.

For cmake.yml, remove macos-12 and macos-13 runners because they no
longer exist. The macos-14 runner will be deprecated starting next month
so skip straight to macos-15. macos-latest, used by cmake-fat.yml, will
switch from macOS 15 to 26 by next month. These runners are now arm64
machines instead of x86_64.
Increase minimum required CMake version from 3.1 to 3.5. Fixes error
"Compatibility with CMake < 3.5 has been removed from CMake" when using
CMake >= 4.
@ryandesign

Copy link
Copy Markdown
Contributor Author

A few questions as I consider further improvements such as consolidating the two workflows:

Previously you had an x86_64 build and a fat build; after this PR, because of changes to the default runners, you will get an arm64 build and a fat build. Would you like a third run to continue having an x86_64 build, either on an Intel runner or cross-compiling on Apple Silicon?

Do you want to continue to have the fat binary built by a different macOS than the standard binary? I assume this is just to verify that builds still succeed on an older OS.

You are currently uploading artifacts from all builds. Do you need the single-arch artifact or is the universal artifact sufficient?

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