-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (48 loc) · 1.26 KB
/
test.yml
File metadata and controls
57 lines (48 loc) · 1.26 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Kernel Tests
on:
push:
paths:
- "kernel/**"
- "**/Makefile"
pull_request:
paths:
- "kernel/**"
- "**/Makefile"
jobs:
test:
name: Run Kernel Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y xorriso cpio qemu-system-x86-64
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@nightly
with:
targets: x86_64-unknown-none
- name: Setup Anaxa Build System
run: cargo install cargo-anaxa
- name: Cache Rust dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
kernel/target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Run cargo test
working-directory: kernel
run: make test
timeout-minutes: 10
- name: Upload Test Report
uses: actions/upload-artifact@v4
if: always()
with:
name: test-reports
path: target/test-reports