What problem does it solves?
Authoring effective GitHub Actions CI/CD workflows for OS kernels presents unique challenges, including custom Rust targets, QEMU virtualization, and complex build processes. This Skill provides patterns and best practices to create, optimize, and troubleshoot Breenix CI/CD pipelines, ensuring reliable and efficient automated testing.
Core Features & Use Cases
- Custom Rust Toolchain Setup: Configure specific Rust nightly versions, targets (
x86_64-unknown-none), and components (rust-src, llvm-tools-preview).
- QEMU & System Dependencies: Ensure all necessary virtualization tools and system libraries are installed for kernel testing.
- xtask Integration: Orchestrate complex kernel test workflows using the
xtask pattern for consistent and robust CI runs.
- Use Case: You need to add a new CI workflow for a critical kernel feature. Use this Skill to quickly set up the correct Rust toolchain, install QEMU, integrate your
xtask test command, and configure artifact uploads, ensuring your feature is automatically tested on every push.
Quick Start
Example: Install Rust toolchain
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2025-06-24
override: true
target: x86_64-unknown-none
components: rust-src, llvm-tools-preview
Example: Build userspace tests (CRITICAL for kernel tests)
- name: Build userspace tests
run: |
export PATH="$PATH:$(rustc --print sysroot)/lib/rustlib/x86_64-unknown-linux-gnu/bin"
cd userspace/tests
./build.sh