Skip to content

Commit

Permalink
Fix not being able to find cargo-hack
Browse files Browse the repository at this point in the history
Just run the executable instead of through a cargo subcommand
  • Loading branch information
alpha-tango-kilo committed Nov 10, 2023
1 parent 1bd8dab commit 525fb5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .woodpecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ steps:
image: rust
commands:
- .woodpecker/install_cargo_hack.sh
- cargo hack \
- cargo-hack \
--each-feature \
--exclude-no-default-features \
--exclude-all-features \
Expand All @@ -13,12 +13,12 @@ steps:
image: rust:1.72
commands:
- .woodpecker/install_cargo_hack.sh
- cargo hack \
- cargo-hack \
--each-feature \
--exclude-no-default-features \
--exclude-all-features \
check
- cargo hack \
- cargo-hack \
--each-feature \
--exclude-no-default-features \
--exclude-all-features \
Expand Down
3 changes: 2 additions & 1 deletion .woodpecker/install_cargo_hack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
host=$(rustc -Vv | grep host | sed 's/host: //')
# Download binary and install to $HOME/.cargo/bin
mkdir -p "$HOME/.cargo/bin"
curl --proto '=https' --tlsv1.2 -fsSL https://github.com/taiki-e/cargo-hack/releases/latest/download/cargo-hack-$host.tar.gz | tar xzf - -C "$HOME/.cargo/bin"
curl --proto '=https' --tlsv1.2 -fsSL https://github.com/taiki-e/cargo-hack/releases/latest/download/cargo-hack-$host.tar.gz | tar xzf -
chmod +x cargo-hack

0 comments on commit 525fb5f

Please sign in to comment.