This commit is contained in:
parent
5bb1aa51fb
commit
6d10357e30
1 changed files with 38 additions and 0 deletions
38
.forgejo/workflows/test-build.yml
Normal file
38
.forgejo/workflows/test-build.yml
Normal file
|
@ -0,0 +1,38 @@
|
|||
name: Kernel Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [ assigned, opened, synchronize, reopened ]
|
||||
|
||||
jobs:
|
||||
test-build:
|
||||
name: Build
|
||||
runs-on: aarch64
|
||||
container:
|
||||
image: debian:bookworm
|
||||
steps:
|
||||
- name: Setup build environment
|
||||
run: |
|
||||
cat /etc/os-release
|
||||
cp /etc/apt/sources.list.d/debian.sources /etc/apt/sources.list.d/debian-src.sources
|
||||
sed 's/Types: deb/Types: deb-src/' -i /etc/apt/sources.list.d/debian-src.sources
|
||||
apt-get update
|
||||
apt-get install -y devscripts debhelper equivs git nodejs sudo
|
||||
sudo hostname host.docker.internal
|
||||
- name: Checkout Sources
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: pve-kernel-thunderx
|
||||
- name: Checkout submodules
|
||||
run: git -C pve-kernel-thunderx submodule update --init --depth 16 --jobs 3
|
||||
- name: Build Kernel
|
||||
run: |
|
||||
cd pve-kernel-thunderx
|
||||
debian/rules debian/control
|
||||
sudo mk-build-deps --tool 'apt-get --no-install-recommends --yes' --install debian/control
|
||||
debuild --no-lintian -ePVE* --jobs=auto -b -uc -us
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: debs
|
||||
path: "*.deb"
|
Loading…
Reference in a new issue