pve-kernel-thunderx/.forgejo/workflows/build.yml

37 lines
1 KiB
YAML
Raw Normal View History

name: Kernel Build
2024-10-06 15:01:10 +00:00
on: push
jobs:
build:
name: Build
2024-10-06 15:01:10 +00:00
runs-on: aarch64
container:
image: debian:bookworm
if: ${{ !contains(github.event.head_commit.message, 'skip ci') }}
steps:
2024-10-06 15:01:10 +00:00
- name: Setup build environment
2024-10-06 15:12:09 +00:00
run: |
cat /etc/os-release
2024-10-06 17:46:41 +00:00
cat /etc/apt/sources.list
2024-10-06 15:12:09 +00:00
apt-get update
apt-get install -y devscripts debhelper equivs git nodejs sudo
2024-10-06 17:26:52 +00:00
sudo hostname host.docker.internal
- name: Checkout Sources
2024-10-06 16:39:53 +00:00
uses: actions/checkout@v4
2024-10-06 16:41:34 +00:00
- name: Checkout submodules
run: git submodule update --init --depth 16 --jobs 3
2024-10-06 17:28:12 +00:00
- name: Setup build
run: |
debian/rules debian/control
sudo mk-build-deps \
--tool 'apt-get -o --no-install-recommends --yes' \
--install debian/control
2024-10-06 17:28:12 +00:00
- name: Build Kernel
run: 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
2021-04-20 19:03:51 +00:00
path: "*.deb"