-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (61 loc) · 2.13 KB
/
Copy pathbpfcompat-example.yml
File metadata and controls
70 lines (61 loc) · 2.13 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
63
64
65
66
67
68
69
70
name: bpfcompat-example
# Optional operator lane for environments that register a Linux x64 runner
# with KVM. Pull requests use bpfcompat-example-hosted instead; keeping this
# workflow manual prevents permanently queued jobs when no self-hosted runner
# is registered.
on:
workflow_dispatch:
permissions:
contents: read
jobs:
compatibility-gate:
name: Compatibility Gate
# Requires a self-hosted Linux x64 runner with KVM access.
runs-on: [self-hosted, linux, x64]
timeout-minutes: 45
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Verify KVM availability
shell: bash
run: |
set -euo pipefail
if [[ ! -e /dev/kvm ]]; then
echo "::error::/dev/kvm not found. Use a self-hosted runner with KVM enabled."
exit 1
fi
- name: Build validator and fixture artifacts
shell: bash
run: |
set -euo pipefail
make validator-static
make examples
- name: Fetch VM image for dev-one profile
shell: bash
run: |
set -euo pipefail
make vm-ubuntu-22
- name: Run bpfcompat action
uses: ./
with:
suite: suites/dev-functional.yaml
suite-out: reports/ci-dev-functional-suite.json
suite-markdown: reports/ci-dev-functional-suite.md
timeout: 8m
concurrency: "1"
build: "true"
- name: Upload reports
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: bpfcompat-reports-${{ github.run_id }}
if-no-files-found: warn
path: |
reports/ci-dev-functional-suite.json
reports/ci-dev-functional-suite.md
reports/suites/dev-functional/*.json
reports/suites/dev-functional/*.md
.bpfcompat/runs/**/targets/**/serial.log
.bpfcompat/runs/**/targets/**/libbpf.log
.bpfcompat/runs/**/targets/**/validator-result.json
.bpfcompat/runs/**/targets/**/validator.stderr