![]() I’ve built a Docker image for GitHub Actions to use. This supports building and linking macOS binaries from the Linux container. Using a base Rust musl build container, on top of Debian Buster, I’ve added osxcross and the required build tools. ![]() ![]() While it might be possible to use GitHub Actions Matrix to run a build across multiple operating systems and install Rust / rustup / cargo on each, performing the build in each place, I opted for a different strategy. I wanted to setup a GitHub Actions workflow that would build binaries for different platforms from the same actions runner. However, the Rust cross compile process gets a little tricker when linking is done for platforms different to the host platform. It’s easy enough to add extra targets using the cargo command when building your Rust project. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |