mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-10 23:32:49 +02:00
fix: Change cargo-deb steps to play nice with the setup-rust action
This commit is contained in:
parent
d8f6c0fc67
commit
660f1ee790
1 changed files with 6 additions and 22 deletions
|
@ -98,30 +98,14 @@ jobs:
|
|||
echo "Component: $COMPONENT"
|
||||
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
|
||||
if: steps.cache-cargo-deb.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
ls -alh ~/.cargo/bin
|
||||
whereis cargo-deb
|
||||
cargo install cargo-deb
|
||||
if command -v cargo-deb &> /dev/null; then
|
||||
echo "cargo-deb already available"
|
||||
else
|
||||
echo "Installing cargo-deb"
|
||||
cargo-binstall -y --no-symlinks cargo-deb
|
||||
fi
|
||||
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue