Supports i686 and aarch64 for QEMU tests #16
This file contains 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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Check code styles | |
run: cargo fmt --check | |
- name: Run Clippy | |
run: cargo clippy --workspace -- -D warnings | |
- name: Install system packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y ovmf ovmf-ia32 qemu-efi-aarch64 qemu-system-arm qemu-system-x86 | |
- name: Add UEFI targets | |
run: | | |
rustup target add aarch64-unknown-uefi i686-unknown-uefi x86_64-unknown-uefi | |
- name: Generate test configurations | |
run: | | |
[qemu.aarch64-unknown-uefi] | |
bin = "qemu-system-aarch64" | |
firmware = "/usr/share/AAVMF/AAVMF_CODE.fd" | |
nvram = "/usr/share/AAVMF/AAVMF_VARS.fd" | |
[qemu.i686-unknown-uefi] | |
bin = "qemu-system-i386" | |
firmware = "/usr/share/OVMF/OVMF32_CODE_4M.secboot.fd" | |
nvram = "/usr/share/OVMF/OVMF32_VARS_4M.fd" | |
[qemu.x86_64-unknown-uefi] | |
bin = "qemu-system-x86_64" | |
firmware = "/usr/share/OVMF/OVMF_CODE.fd" | |
nvram = "/usr/share/OVMF/OVMF_VARS.fd" | |
shell: cp -v {0} zfi.toml | |
- name: Run tests | |
run: cargo test |