ci: try debian packaging
This commit is contained in:
parent
1ef7a5d0aa
commit
e962d30d53
1 changed files with 62 additions and 0 deletions
|
@ -5,6 +5,68 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
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:
|
buildx:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue