ci(deb): add arm64 deb packaging to cd (#351)

This commit is contained in:
Alexandre Pasmantier 2025-02-07 23:37:50 +01:00 committed by GitHub
parent ade69d7bff
commit 11e440c151
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -175,10 +175,18 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-release-deb:
name: publish-release-deb
name: publish-release-deb for ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- target: x86_64-unknown-linux-musl
- target: armv7-unknown-linux-musleabihf
env:
TARGET: x86_64-unknown-linux-musl
TARGET: ${{ matrix.target }}
# Emit backtraces on panics.
RUST_BACKTRACE: 1
# Since we're distributing the dpkg, we don't know whether the user will
@ -205,18 +213,12 @@ jobs:
with:
toolchain: nightly
target: ${{ env.TARGET }}
# for some reason, the above action doesn't seem to set the target correctly
- name: Add rustup target
shell: bash
run: |
rustup target add x86_64-unknown-linux-musl
# for some reason, the above action doesn't seem to set the target correctly
- name: Add rustup target
shell: bash
run: |
rustup target add x86_64-unknown-linux-musl
rustup target add ${{ env.TARGET }}
- name: Install cargo-deb
shell: bash
@ -236,7 +238,7 @@ jobs:
cargo deb --profile deb --target ${{ env.TARGET }}
version="${{ github.ref_name }}"
echo "DEB_DIR=target/${{ env.TARGET }}/debian" >> $GITHUB_ENV
echo "DEB_NAME=television_$version-1_amd64.deb" >> $GITHUB_ENV
echo "DEB_NAME=television_$version-1_${{ env.TARGET }}.deb" >> $GITHUB_ENV
- name: Create sha256 sum of deb file
shell: bash