2021-09-05 09:55:18 +00:00
|
|
|
name: Kernel Build
|
2020-09-17 23:36:42 +00:00
|
|
|
|
2021-09-05 09:51:08 +00:00
|
|
|
on: pull_request
|
2020-09-17 23:36:42 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
2021-09-05 09:51:08 +00:00
|
|
|
runs-on: [self-hosted]
|
2021-09-05 09:55:18 +00:00
|
|
|
if: ${{ !contains(github.event.head_commit.message, 'skip ci') }}
|
2020-09-17 23:36:42 +00:00
|
|
|
steps:
|
2021-04-18 17:55:44 +00:00
|
|
|
- name: Clean Workspace
|
|
|
|
run: rm -rf *.deb *.ddeb *.build *.buildinfo *.changes
|
2020-09-17 23:36:42 +00:00
|
|
|
- name: Checkout Sources
|
2022-10-26 11:24:54 +00:00
|
|
|
uses: actions/checkout@v3
|
2020-09-17 23:36:42 +00:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2021-04-18 17:55:44 +00:00
|
|
|
path: pve-edge-kernel
|
|
|
|
- name: Clean Repository
|
|
|
|
run: git -C pve-edge-kernel submodule foreach git clean -ffdx
|
2020-09-17 23:36:42 +00:00
|
|
|
- name: Build Kernel
|
|
|
|
run: |
|
2021-04-18 17:55:44 +00:00
|
|
|
rm -rf *.deb *.ddeb *.build *.buildinfo *.changes
|
|
|
|
cd pve-edge-kernel
|
|
|
|
debian/rules debian/control
|
2021-04-19 15:55:01 +00:00
|
|
|
debuild -e CCACHE_DIR=/var/cache/ccache --prepend-path=/usr/lib/ccache --jobs=auto -b -uc -us
|
2020-09-17 23:36:42 +00:00
|
|
|
- name: Upload Artifacts
|
2022-10-26 11:24:54 +00:00
|
|
|
uses: actions/upload-artifact@v3
|
2020-09-17 23:36:42 +00:00
|
|
|
with:
|
2021-04-18 17:55:44 +00:00
|
|
|
name: debs
|
2021-04-20 19:03:51 +00:00
|
|
|
path: "*.deb"
|