fix(ci): more tweaking to the deb releases configuration (#424)

This commit is contained in:
Alexandre Pasmantier 2025-03-20 23:44:45 +01:00 committed by GitHub
parent 8ad4a9953d
commit ea6deef11b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -245,6 +245,11 @@ jobs:
run: | run: |
cp man/tv.1 "$DEPLOY_DIR/" cp man/tv.1 "$DEPLOY_DIR/"
- name: Check dependencies
shell: bash
run: |
cargo tree --target ${{ matrix.target }} --no-dedupe
- name: Build release binary - name: Build release binary
shell: bash shell: bash
run: | run: |
@ -253,8 +258,10 @@ jobs:
sudo apt-get install -y --no-install-recommends gcc-aarch64-linux-gnu sudo apt-get install -y --no-install-recommends gcc-aarch64-linux-gnu
fi fi
version="${{ github.ref_name }}" version="${{ github.ref_name }}"
DEB_NAME="tv-$version-${{ matrix.arch }}.deb" DEB_NAME="tv-$version-${{ matrix.target }}.deb"
DEB_DIR="target/${{ matrix.target }}/debian" DEB_DIR="target/${{ matrix.target }}/debian"
# Build the actual binary
cargo deb --profile deb --target ${{ matrix.target }} -o "$DEB_DIR/$DEB_NAME" cargo deb --profile deb --target ${{ matrix.target }} -o "$DEB_DIR/$DEB_NAME"
echo "DEB_DIR=$DEB_DIR" >> $GITHUB_ENV echo "DEB_DIR=$DEB_DIR" >> $GITHUB_ENV
echo "DEB_NAME=$DEB_NAME" >> $GITHUB_ENV echo "DEB_NAME=$DEB_NAME" >> $GITHUB_ENV