2020-09-17 23:36:42 +00:00
|
|
|
name: Kernel Build (Trusted)
|
|
|
|
|
|
|
|
on: pull_request
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: [self-hosted]
|
|
|
|
if: github.event.pull_request.head.repo.full_name == github.repository && !contains(github.event.head_commit.message, 'skip ci')
|
|
|
|
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
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
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
|
|
|
|
uses: actions/upload-artifact@v2-preview
|
|
|
|
with:
|
2021-04-18 17:55:44 +00:00
|
|
|
name: debs
|
2021-04-20 19:03:51 +00:00
|
|
|
path: "*.deb"
|