From e962d30d53490fb1b31032b38353e408b3037777 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Sat, 19 Jul 2025 19:53:39 +0300 Subject: [PATCH] ci: try debian packaging --- .forgejo/workflows/ci.yml | 62 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 08e6618..32a2204 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -5,6 +5,68 @@ on: workflow_dispatch: jobs: + build-deb-amd64: + runs-on: docker + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build + uses: https://github.com/addnab/docker-run-action@v3 + with: + image: trixie-amd64-musl-runner:latest + options: -v ${{ github.workspace }}:/work + run: | + cd work + ./debian/make_debian_changelog.sh + PATH=$PATH:/opt/x86_64-linux-musl-cross/bin FLAGS="-static" DEB_BUILD_OPTIONS=parallel=$(nproc) dpkg-buildpackage --post-clean --no-sign -aamd64 -t x86_64-linux-musl -i -I -b + mv ../*.deb . + - name: Upload packages artifacts + uses: https://code.forgejo.org/forgejo/upload-artifact@v3 + with: + name: packages + path: "*.deb" + + build-deb-arm64: + runs-on: docker + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build + uses: https://github.com/addnab/docker-run-action@v3 + with: + image: trixie-amd64-musl-runner:latest + options: -v ${{ github.workspace }}:/work + run: | + cd work + ./debian/make_debian_changelog.sh + PATH=$PATH:/opt/aarch64-linux-musl-cross/bin FLAGS="-static" DEB_BUILD_OPTIONS=parallel=$(nproc) dpkg-buildpackage --post-clean --no-sign -aarm64 -t aarch64-linux-musl -i -I -b + mv ../*.deb . + - name: Upload packages artifacts + uses: https://code.forgejo.org/forgejo/upload-artifact@v3 + with: + name: packages + path: "*.deb" + + build-deb-armhf: + runs-on: docker + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build + uses: https://github.com/addnab/docker-run-action@v3 + with: + image: trixie-amd64-musl-runner:latest + options: -v ${{ github.workspace }}:/work + run: | + cd work + ./debian/make_debian_changelog.sh + PATH=$PATH:/opt/arm-linux-musleabihf-cross/bin FLAGS="-mcpu=arm1176jzf-s -static" DEB_BUILD_OPTIONS=parallel=$(nproc) dpkg-buildpackage --post-clean --no-sign -aarmhf -t arm-linux-musleabihf -i -I -b + mv ../*.deb . + - name: Upload packages artifacts + uses: https://code.forgejo.org/forgejo/upload-artifact@v3 + with: + name: packages + path: "*.deb" buildx: runs-on: docker steps: