-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.51 KB
/
Copy pathci.yml
File metadata and controls
62 lines (51 loc) · 1.51 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
58
59
60
61
62
name: CI
on:
push:
branches:
- main
- master
pull_request:
jobs:
validation:
runs-on: ubuntu-latest
timeout-minutes: 360
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust nightly
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, rust-src, llvm-tools-preview
- name: Cache Rust artifacts
uses: Swatinem/rust-cache@v2
- name: Cache bootimage tools
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/bootimage
~/.cargo/bin/bootimage-runner
~/.cargo/bin/cargo-bootimage
key: bootimage-tools-${{ runner.os }}-0.10.4-v1
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y qemu-system-x86 nasm
- name: Install cargo-audit (supply chain gate)
run: |
if ! command -v cargo-audit >/dev/null 2>&1; then
cargo install cargo-audit --locked
fi
- name: Install bootimage
run: |
if ! command -v bootimage >/dev/null 2>&1; then
cargo install bootimage --version 0.10.4 --locked
fi
- name: Verify formatting
run: cargo fmt --all -- --check
- name: Full validation matrix
run: |
python3 scripts/validation_matrix.py \
--soak-duration 30 \
--latency-duration 30 \
--boot-wait 90 \
--smoke-timeout 180