-
Notifications
You must be signed in to change notification settings - Fork 54
65 lines (54 loc) · 1.65 KB
/
build.yaml
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
name: build
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.run_id || github.head_ref || github.ref }}-${{ github.workflow }}-${{ github.event_name }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
name: build kernel #and system
runs-on: namespace-profile-arm64-8x16-2004-caching
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: get kernel submodule ref
id: kernel-submodule
run: echo "ref=$(git ls-tree HEAD | awk '$4 == "agnos-kernel-sdm845"' | awk '{print $3}')" >> "$GITHUB_OUTPUT"
- name: Checkout agnos-kernel-sdm845
uses: actions/checkout@v4
with:
repository: commaai/agnos-kernel-sdm845
ref: ${{ steps.kernel-submodule.outputs.ref }}
path: agnos-kernel-sdm845
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y img2simg
- name: Cache kernel build
uses: actions/cache@v4
id: cache-kernel
with:
key: kernel-${{ steps.kernel-submodule.outputs.ref }}
path: |
agnos-kernel-sdm845/out
restore-keys: kernel-
- name: Build kernel
run: ./build_kernel.sh
- uses: actions/upload-artifact@v4
with:
name: boot.img
path: output/boot.img
- uses: actions/upload-artifact@v4
with:
name: kernel-modules
path: output/*.ko
#- run: ./build_system.sh
#- uses: actions/upload-artifact@v4
# with:
# name: system.img
# path: output/system.img