From 577289ee7dd32e957844ab1424619f3b9906ba7f Mon Sep 17 00:00:00 2001 From: Alexandre Pasmantier Date: Fri, 7 Feb 2025 22:57:56 +0100 Subject: [PATCH] ci(deb): add arm64 deb packaging to cd --- .github/workflows/cd.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 4907bf1..2669a29 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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