Skip to content

Rust Hypervisor Firmware Build #551

Rust Hypervisor Firmware Build

Rust Hypervisor Firmware Build #551

Workflow file for this run

name: Rust Hypervisor Firmware Build
on: [pull_request, merge_group]
env:
RUSTFLAGS: "-D warnings"
jobs:
build:
name: Build
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-none.json
tests: true
- target: aarch64-unknown-none.json
tests: false
- target: riscv64gcv-unknown-none-elf.json
tests: false
steps:
- name: Code checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install Rust components
run: rustup component add rust-src clippy rustfmt
- name: Build (debug)
run: cargo build --target ${{ matrix.target }} -Zbuild-std=core -Zbuild-std-features=compiler-builtins-mem
- name: Build (release)
run: cargo build --release --target ${{ matrix.target }} -Zbuild-std=core -Zbuild-std-features=compiler-builtins-mem
- name: Clippy (default)
run: cargo clippy --target ${{ matrix.target }} -Zbuild-std=core
- name: Clippy (all targets, all features)
run: cargo clippy --all-targets --all-features
- name: Formatting
run: cargo fmt --all -- --check
- if: ${{ matrix.tests }}
name: Unit tests
run: |
sudo apt-get install -y mtools
bash scripts/run_unit_tests.sh