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 }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-release-deb: publish-release-deb:
name: publish-release-deb name: publish-release-deb for ${{ matrix.target }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
include:
- target: x86_64-unknown-linux-musl
- target: armv7-unknown-linux-musleabihf
env: env:
TARGET: x86_64-unknown-linux-musl TARGET: ${{ matrix.target }}
# Emit backtraces on panics. # Emit backtraces on panics.
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
# Since we're distributing the dpkg, we don't know whether the user will # Since we're distributing the dpkg, we don't know whether the user will
@ -210,13 +218,7 @@ jobs:
- name: Add rustup target - name: Add rustup target
shell: bash shell: bash
run: | run: |
rustup target add x86_64-unknown-linux-musl rustup target add ${{ 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
- name: Install cargo-deb - name: Install cargo-deb
shell: bash shell: bash
@ -236,7 +238,7 @@ jobs:
cargo deb --profile deb --target ${{ env.TARGET }} cargo deb --profile deb --target ${{ env.TARGET }}
version="${{ github.ref_name }}" version="${{ github.ref_name }}"
echo "DEB_DIR=target/${{ env.TARGET }}/debian" >> $GITHUB_ENV 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 - name: Create sha256 sum of deb file
shell: bash shell: bash