pve-kernel-thunderx/.forgejo/workflows/release-build.yml
Antoine Martin da56a8211e
Some checks failed
Kernel Release / Build (push) Failing after 56m0s
Kernel Release / release-deploy (push) Has been skipped
Remove multiline
2024-10-06 15:30:58 -04:00

50 lines
1.6 KiB
YAML

name: Kernel Release
on: push
jobs:
release-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
- name: Checkout submodules
run: git submodule update --init --depth 16 --jobs 3
- name: Setup build
run: |
debian/rules debian/control
sudo mk-build-deps --tool 'apt-get --no-install-recommends --yes' --install debian/control
- name: Build Kernel
run: debuild --no-lintian -ePVE* --jobs=auto -b -uc -us
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: debs
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