Skip to content

Build kernel in CI

Build kernel in CI #42

Workflow file for this run

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:
runs-on: namespace-profile-arm64-8x16-2004-caching
timeout-minutes: 180
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"
- uses: namespacelabs/nscloud-checkout-action@v2
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 bc img2simg
- uses: LizardByte/setup-python-action@24f68bb394b3cc9ad84583f60c7b279092cea17d
with:
python-version: '2.7'
- 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