Fixes warnings on Rust 1.83 #34
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@v4 | |
- 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 qemu-efi-aarch64 qemu-system-arm qemu-system-x86 | |
- name: Add UEFI targets | |
run: | | |
rustup target add aarch64-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.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 |