32 lines
846 B
YAML
32 lines
846 B
YAML
name: Kernel Build
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: aarch64
|
|
container:
|
|
image: debian:bookworm
|
|
if: ${{ !contains(github.event.head_commit.message, 'skip ci') }}
|
|
steps:
|
|
- name: Setup build environment
|
|
run: |
|
|
cat /etc/os-release
|
|
apt-get update
|
|
apt-get install -y devscripts debhelper equivs git nodejs sudo
|
|
- name: Checkout Sources
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
- name: Setup build depends
|
|
run: sudo mk-build-deps -i
|
|
- name: Build Kernel
|
|
run: |
|
|
debian/rules debian/control
|
|
debuild -e CCACHE_DIR=/var/cache/ccache --prepend-path=/usr/lib/ccache --jobs=auto -b -uc -us
|
|
- name: Upload Artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: debs
|
|
path: "*.deb"
|