-
Notifications
You must be signed in to change notification settings - Fork 25
42 lines (40 loc) · 1.3 KB
/
bootloader.yml
File metadata and controls
42 lines (40 loc) · 1.3 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
name: Build Bootloader
on:
workflow_dispatch:
workflow_call:
pull_request:
branches: ["main"]
paths:
- bootloader/config*
- bootloader/build.sh
- .github/workflows/bootloader.yml
jobs:
build_bootloader:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
arch: x86_64
- os: ubuntu-24.04-arm
arch: aarch64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: stable
cache-dependency-path: "**/go.sum"
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@ebc0426251bc40c7cd31162802432c68818ab8f0 # v2.0.9
with:
version: "20"
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libelf-dev
- name: Build bootloader
run: ARCH=${{ matrix.arch }} ./bootloader/build.sh
- name: Upload artifact
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: kernel-${{ matrix.arch }}
path: target/bootloader-${{ matrix.arch }}/kernel-${{ matrix.arch }}