Skip to content

CI: Make macOS build universal and bump GitHub actions versions#108

Open
shinra-electric wants to merge 3 commits into
XboxDev:masterfrom
shinra-electric:mac-universal
Open

CI: Make macOS build universal and bump GitHub actions versions#108
shinra-electric wants to merge 3 commits into
XboxDev:masterfrom
shinra-electric:mac-universal

Conversation

@shinra-electric

@shinra-electric shinra-electric commented Jun 20, 2026

Copy link
Copy Markdown

Add the -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" flag, so CMake will create a universal binary.

If x86 support is dropped in the future, this flag can be removed.

Edit:
Also removed the artifact zipping step for macOS and Linux.
The upload-artifact action zips them as well by default, so they were being double-zipped.

@shinra-electric

shinra-electric commented Jun 21, 2026

Copy link
Copy Markdown
Author

I got an email with a comment, but it seems to have disappeared or has been deleted.

Just to confirm, setting the CMake flag does indeed build a universal binary. Running the file command on the executable will give this output:

extract-xiso: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64]
extract-xiso (for architecture x86_64):	Mach-O 64-bit executable x86_64
extract-xiso (for architecture arm64):	Mach-O 64-bit executable arm64

The compiled executable is available on the action build on my fork for reference:
https://github.com/shinra-electric/extract-xiso/actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant