Skip to content

Commit 32b101e

Browse files
committed
ci: add a workflow for bootloader
Signed-off-by: Changyuan Lyu <changyuanl@google.com>
1 parent 01bdffb commit 32b101e

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/bootloader.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build Bootloader
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
pull_request:
7+
branches: ["main"]
8+
paths:
9+
- bootloader/**
10+
- .github/workflows/bootloader.yml
11+
12+
jobs:
13+
build_bootloader:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
include:
18+
- os: ubuntu-latest
19+
artifact_path: target/bootloader-x86_64/linux/arch/x86/boot/bzImage
20+
artifact_name: bootloader-x86_64
21+
- os: ubuntu-24.04-arm
22+
artifact_path: target/bootloader-aarch64/linux/arch/arm64/boot/Image
23+
artifact_name: bootloader-aarch64
24+
runs-on: ${{ matrix.os }}
25+
steps:
26+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
27+
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
28+
with:
29+
go-version: "stable"
30+
- name: Install dependencies
31+
run: apt-get update && apt-get install -y llvm libelf-dev
32+
- name: Build bootloader
33+
run: ./bootloader/build.sh
34+
- name: Upload artifact
35+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
36+
with:
37+
name: ${{ matrix.artifact_name }}
38+
path: ${{ matrix.artifact_path }}

0 commit comments

Comments
 (0)