Skip to content

Commit 94ca2ee

Browse files
committed
ci: prepend brew bin to PATH to reproduce macos GOROOT failure
1 parent 5fda52b commit 94ca2ee

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,17 @@ jobs:
8383
- uses: ./.github/actions/rust-install
8484
- run: cargo build --release
8585

86-
- run: which -a go && go env GOROOT
86+
- name: Probe go resolution with brew bin prepended
87+
run: |
88+
export PATH="/opt/homebrew/bin:$PATH"
89+
echo "PATH=$PATH"
90+
which -a go
91+
go env GOROOT || echo "go env GOROOT failed with exit $?"
8792
8893
- name: Run the benchmarks
8994
uses: CodSpeedHQ/action@main
95+
env:
96+
PATH: /opt/homebrew/bin:${{ env.PATH }}
9097
with:
9198
run: cargo r --release --manifest-path ../go-runner/Cargo.toml -- test -bench=BenchmarkFibonacciDarwin example -benchtime=500ms
9299
working-directory: example

0 commit comments

Comments
 (0)