Skip to content

Commit

Permalink
ci(deb): add arm64 deb packaging to cd (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpasmantier authored Feb 7, 2025
1 parent ade69d7 commit 11e440c
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 11e440c

Please sign in to comment.