Skip to content

Commit 6e5ceb1

Browse files
committed
refactor(bench-ci): Soo, it's bash not zsh
1 parent 16a5e51 commit 6e5ceb1

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

.github/workflows/bench.yml

+10-16
Original file line numberDiff line numberDiff line change
@@ -12,39 +12,33 @@ jobs:
1212

1313
steps:
1414
- name: Checkout repository
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v2
1616

17-
- name: Setup dot env paths
17+
- name: Set up environment
1818
run: |
19+
sudo apt update
20+
sudo apt install -y golang
1921
export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo"
2022
export RUSTUP_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/rustup"
2123
export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go"
22-
export PATH="$PATH:${$(find ~/.local/share/cargo/bin -type d -printf %p:)%%:}"
23-
export PATH="$PATH:${$(find ~/.local/share/go/bin -type d -printf %p:)%%:}"
24-
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse # Add sparse index protocol for cargo
24+
export PATH="$PATH:$HOME/.local/share/cargo/bin:$HOME/.local/share/go/bin"
25+
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
2526
2627
- name: Install hyperfine
27-
run: |
28-
cargo install hyperfine
28+
run: cargo install hyperfine
2929

3030
- name: Install gowitness
31-
run: |
32-
sudo apt update
33-
sudo apt install golang -y
34-
go install github.com/sensepost/gowitness@latest
31+
run: go install github.com/sensepost/gowitness@latest
3532

3633
- name: Get 50 URLs
3734
run: |
3835
curl -qfsSL "https://raw.githubusercontent.com/Azathothas/CertStream-Domains/main/Data/np_ccTLDs/certstream_domains_np_all_24h_httpx.txt" |
39-
awk '{print $1}' |
40-
grep -i 'http' |
36+
awk '/http/ {print $1}' |
4137
sort -u |
4238
head -n 50 > urls.txt
4339
4440
- name: Install hxn
45-
run: |
46-
cargo build --release
47-
sudo mv -iv target/release/hxn /usr/local/bin/hxn
41+
run: cargo install hxn
4842

4943
- name: Bench gowitness with hxn
5044
run: |

0 commit comments

Comments
 (0)