ci: add cross-platform release workflow and Docker build#2
Merged
Conversation
Disable all upstream CI workflows (commented out for reference) and replace with a new two-stage release pipeline that produces bare library files for Linux and macOS on both x86_64 and aarch64. - Add release.yml: Linux runners build kernel + .so, then pass kernel.c as job artifact to macOS runners for .dylib compilation - Replace krunvm build scripts with build_in_docker.sh for macOS local builds (Fedora container via Docker) - Update Makefile to call build_in_docker.sh on Darwin - Add *.dylib to .gitignore - Add plan.md documenting the release workflow design Release artifacts use arch-differentiated names (e.g. libkrunfw-linux-x86_64.so.5.2.1) for direct download by microsandbox build.rs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Changes
.github/workflows/release.yml: two-stage pipeline triggered on GitHub release publish. Linux runners (ubuntu-latest, ubuntu-24.04-arm) build the kernel and .so natively, then pass kernel.c as a job artifact to macOS runners (macos-latest, macos-13) for .dylib compilation. Versions are extracted from the Makefile at CI time.build_in_docker.sh: replaces build_on_krunvm.sh for local macOS builds. Runs kernel compilation in a Fedora Docker container with bind-mounted source directory.build_on_krunvm.sh,build_on_krunvm_fedora.sh,build_on_krunvm_debian.shMakefileDarwin code path to callbuild_in_docker.shinstead ofbuild_on_krunvm.sh*.dylibto.gitignoreplan.mddocumenting the release workflow design and architecture decisionsTest Plan
makesuccessfully builds kernel in Docker and produceslibkrunfw.5.dylib