fix: Change cargo-deb steps to play nice with the setup-rust action

This commit is contained in:
Ginger 2025-09-10 09:41:13 -04:00
commit 660f1ee790
No known key found for this signature in database

View file

@ -98,30 +98,14 @@ jobs:
echo "Component: $COMPONENT" echo "Component: $COMPONENT"
echo "Version: $VERSION" echo "Version: $VERSION"
- name: Check cargo-deb version
id: cargo-deb-version
run: |
VERSION=$(curl -s https://index.crates.io/ca/rg/cargo-deb | tail -n1 | jq -r .vers)
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Latest cargo-deb version: $VERSION"
echo ~
echo ${{ forge.workspace }}
ls -alh ~/.cargo/bin
ls -alh ${{ forge.workspace }}/.cargo/bin
- name: Cache cargo-deb installation
id: cache-cargo-deb
uses: actions/cache@v3
with:
path: ${{ forge.workspace }}/.cargo/bin/cargo-deb
key: cargo-deb-${{ steps.debian-version.outputs.distribution }}-${{ steps.cargo-deb-version.outputs.version }}
- name: Install cargo-deb - name: Install cargo-deb
if: steps.cache-cargo-deb.outputs.cache-hit != 'true'
run: | run: |
ls -alh ~/.cargo/bin if command -v cargo-deb &> /dev/null; then
whereis cargo-deb echo "cargo-deb already available"
cargo install cargo-deb else
echo "Installing cargo-deb"
cargo-binstall -y --no-symlinks cargo-deb
fi
- name: Install build dependencies - name: Install build dependencies
run: | run: |