ci: try debian packaging
This commit is contained in:
parent
1ef7a5d0aa
commit
7eae30ff91
1 changed files with 63 additions and 0 deletions
|
@ -31,3 +31,66 @@ jobs:
|
|||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
push: true
|
||||
tags: ${{ vars.CONTAINER_REGISTRY }}/${{ github.repository }}:latest
|
||||
|
||||
build-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 CXXFLAGS="-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-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 CXXFLAGS="-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-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 CXXFLAGS="-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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue