-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (39 loc) · 1.07 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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