Add a github action to check cross-compilation from Linux #38
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a port of the old travis-ci cross-compile check, which currently does not seem to be working.
Downloading the SDK works fine, but initially building produces a "missing libclang.so" error.
On NixOS I threw together a small nix shell to get fix the clang error by setting
LIBCLANG_PATH
and automating the SDK install, however I ran into another error where bindgen seems unable to find the "AudioToolbox/AudioToolbox.h" for some reason. I don't have time to dive deeper into this atm, but thought I'd post my efforts so far in case someone finds them useful.Nix exprs
Here are my nix expressions in case anyone using nix happens to be digging into this. Using these are not necessary to solve the CI build issues though.
macosx-sdk.nix - Simple package that downloads and "installs" the SDK
coreaudio-dev.nix - Simple shell that includes macosx-sdk, libclang and sets the environment variables