-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.09 KB
/
Copy pathbuild.yaml
File metadata and controls
44 lines (38 loc) · 1.09 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
name: Build
on:
push:
branches: [trunk]
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 240
strategy:
fail-fast: false
matrix:
arch: [x86_64, aarch64]
flavor: [firecracker, cloud-hypervisor]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Build kernel
run: ARCH=${{ matrix.arch }} FLAVOR=${{ matrix.flavor }} VERSION=v6.1 USE_DOCKER=1 ./build.sh
- name: Verify artifact exists
run: |
set -euo pipefail
ls -lah dist
shopt -s nullglob
files=(dist/*.tar.gz)
if [ "${#files[@]}" -eq 0 ]; then
echo "No artifact generated for arch=${{ matrix.arch }} flavor=${{ matrix.flavor }}"
exit 1
fi
echo "Artifact: ${files[0]}"
- name: Upload kernel archive
uses: actions/upload-artifact@v4
with:
name: kernel-${{ matrix.flavor }}-${{ matrix.arch }}
path: dist/*.tar.gz
if-no-files-found: error
retention-days: 14