ci: use cargo-deb 3.5.0 (#1782)

* ci: use cargo-deb 3.5.0

* change default location for debian release
This commit is contained in:
Clement Tsang 2025-08-14 03:56:51 -04:00 committed by GitHub
parent 74ddb592e8
commit c29647eaf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -469,9 +469,9 @@ jobs:
env: env:
BTM_GENERATE: true BTM_GENERATE: true
run: | run: |
cargo install cargo-deb --version 2.5.1 --locked cargo install cargo-deb --version 3.5.0 --locked
cargo deb --no-build --target ${{ matrix.info.target }} cargo deb --no-build --target ${{ matrix.info.target }}
cp ./target/${{ matrix.info.target }}/debian/bottom_*.deb . cp ./target/debian/bottom_*.deb .
- name: Build Debian release (ARM) - name: Build Debian release (ARM)
if: startsWith(matrix.info.target, 'x86_64') != true if: startsWith(matrix.info.target, 'x86_64') != true
@ -480,7 +480,7 @@ jobs:
run: | run: |
docker pull ${{ matrix.info.container }} docker pull ${{ matrix.info.container }}
docker run -t --rm --mount type=bind,source="$(pwd)",target=/volume ${{ matrix.info.container }} "--no-build --variant ${{ matrix.info.dpkg }} --target ${{ matrix.info.target }}" "/volume" docker run -t --rm --mount type=bind,source="$(pwd)",target=/volume ${{ matrix.info.container }} "--no-build --variant ${{ matrix.info.dpkg }} --target ${{ matrix.info.target }}" "/volume"
cp ./target/${{ matrix.info.target }}/debian/bottom-*.deb . cp ./target/debian/bottom-*.deb .
TMP_NAME=$(find bottom-*.deb) TMP_NAME=$(find bottom-*.deb)
VERSION=${{ matrix.info.dpkg }} VERSION=${{ matrix.info.dpkg }}
mv $TMP_NAME $(echo $TMP_NAME | sed "s/-$VERSION//") mv $TMP_NAME $(echo $TMP_NAME | sed "s/-$VERSION//")
@ -502,8 +502,8 @@ jobs:
- name: Delete generated Debian folder - name: Delete generated Debian folder
run: | run: |
sudo chown $USER ./target/${{ matrix.info.target }}/debian/ 2>/dev/null || true sudo chown $USER ./target/debian/ 2>/dev/null || true
rm -r ./target/${{ matrix.info.target }}/debian/ rm -r ./target/debian/
- name: Generate artifact attestation for file - name: Generate artifact attestation for file
uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2 uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2