From 16a5e51503dc03e568b78b196a6779462ef42a4c Mon Sep 17 00:00:00 2001 From: pwnwriter Date: Fri, 3 Nov 2023 11:09:32 +0545 Subject: [PATCH] chore(bench): Manually install hyprfine than using binstall --- .github/workflows/bench.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index a540a42..50a25c8 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -14,15 +14,21 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - - name: Install cargo-binstall and hyperfine + - name: Setup dot env paths run: | - cargo install cargo-binstall - cargo binstall hyperfine + export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo" + export RUSTUP_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/rustup" + export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go" + export PATH="$PATH:${$(find ~/.local/share/cargo/bin -type d -printf %p:)%%:}" + export PATH="$PATH:${$(find ~/.local/share/go/bin -type d -printf %p:)%%:}" + export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse # Add sparse index protocol for cargo + + - name: Install hyperfine + run: | + cargo install hyperfine - name: Install gowitness run: | - export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go" - export PATH="$PATH:$GOPATH/bin" # Add ~/.local/share/go/bin to path for Golang sudo apt update sudo apt install golang -y go install github.com/sensepost/gowitness@latest