ci: install generate deb in CI to validate

This commit is contained in:
Clement Tsang 2025-11-05 11:00:54 -05:00
parent cdba8f9064
commit 77da407ebd
No known key found for this signature in database
GPG Key ID: B17834EA2182446B

View File

@ -531,7 +531,7 @@ jobs:
mv $TMP_NAME $(echo $TMP_NAME | sed "s/bottom/bottom-musl/") mv $TMP_NAME $(echo $TMP_NAME | sed "s/bottom/bottom-musl/")
# TODO: Maybe rename version if nightly? # TODO: Maybe rename version if nightly?
- name: Verify Debian release - name: Verify generated Debian release
id: verify id: verify
run: | run: |
DEB_FILE=$(find bottom*_*.deb) DEB_FILE=$(find bottom*_*.deb)
@ -539,6 +539,11 @@ jobs:
dpkg -I $DEB_FILE | grep ${{ matrix.info.dpkg }} && echo "Found correct architecture" dpkg -I $DEB_FILE | grep ${{ matrix.info.dpkg }} && echo "Found correct architecture"
echo "DEB_FILE=$DEB_FILE" >> $GITHUB_OUTPUT echo "DEB_FILE=$DEB_FILE" >> $GITHUB_OUTPUT
- name: Test installing generated Debian release
run: |
apt install ${{ steps.verify.outputs.DEB_FILE }} -y
btm -V
- name: Delete generated Debian folder - name: Delete generated Debian folder
run: | run: |
sudo chown $USER ./target/debian/ 2>/dev/null || true sudo chown $USER ./target/debian/ 2>/dev/null || true