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

56 lines
1.7 KiB
YAML
Raw Normal View History

2024-10-06 19:10:22 +00:00
name: Kernel Release
2024-10-06 19:10:22 +00:00
on:
push:
tags:
- 'v*'
jobs:
2024-10-06 19:10:22 +00:00
release-build:
name: Build
2024-10-06 15:01:10 +00:00
runs-on: aarch64
container:
image: debian:bookworm
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 18:16:09 +00:00
cp /etc/apt/sources.list.d/debian.sources /etc/apt/sources.list.d/debian-src.sources
sed 's/Types: deb/Types: deb-src/' -i sources.list.d/debian-src.sources
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
2024-10-06 19:10:22 +00:00
run: debuild --no-lintian -ePVE* --jobs=auto -b -uc -us
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: debs
2024-10-06 19:10:22 +00:00
path: "../*.deb"
release-deploy:
needs: [release-build]
runs-on: aarch64
container:
image: alpine:latest
steps:
- name: Setting up environment
run: apk add nodejs curl findutils
- name: Package download
uses: forgejo/download-artifact@v3
- name: Package deployment
run: |
find -name '*.deb' > deb.list
while read file; do
curl --user ${{ vars.FORGE_REPO_USER }}:${{ secrets.FORGE_REPO_PRIVKEY }} --upload-file "$file" https://ayakael.net/api/packages/forge/debian/pool/bookworm/main/upload
done < deb.list