Skip to content

Conversation

@nmburgan
Copy link
Member

Building off the amazing work of @shaun-rutherford-blizzard in #46, this makes the necessary changes to build MacOS projects as non-root (but a user with sudo privs) so that we can build things in GitHub Actions. This also changes the naming of MacOS platform strings from osx- to macos-, and since we will be targeting all supported MacOS versions for a given architecture, there are some tweaks to support platforms of macos-all-<arch>.

This makes several changes that allow us to build MacOS projects as
non-root, which will be necessary for running in GitHub Actions.
A bit of cleanup to not chown everything
We will now build all MacOS versions on 15, targeting 13, so we only need a single binary for each arch.
Since GitHub actions runners already have brew installed (or we will be
installing it ourselves for x86_64 on GHA), don't use the separate
'test' user. We also no longer need this user since we are fixing things
to run as non-root.
Since MacOS hasn't been called OSX in quite some time, this changes
things to generally use 'macos' in place of 'osx'. Also, we plan on
building a single MacOS agent for each architecture, so we'll be using a
platform string like macos-all-<arch>.
@nmburgan nmburgan changed the title Macos nonroot Changes to build for MacOS as non-root in GitHub Actions Aug 31, 2025
Add a period between 'macos' and 'all' since we aren't using a number
here and 'macosall' looks weird. Also adds the architecture.
@bastelfreak bastelfreak added the enhancement New feature or request label Sep 1, 2025
@nmburgan nmburgan merged commit c751332 into main Sep 1, 2025
8 checks passed
@nmburgan nmburgan deleted the macos_nonroot branch September 1, 2025 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants