Skip to content

Commit a06e2e3

Browse files
fix gotip configuration
Signed-off-by: Achille Roussel <[email protected]>
1 parent 3fcf9ad commit a06e2e3

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,5 @@ jobs:
3030
ls -lah gotip.tar.gz
3131
mkdir -p $HOME/gotip
3232
tar -C $HOME/gotip -xzf gotip.tar.gz
33-
34-
- run: git config --global url.https://[email protected] https://github.com
3533
- run: make wasirun
36-
- run: make test
34+
- run: make test GO=$HOME/gotip/bin/go

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
.PHONY: test lint wasirun
22

3-
GOPATH = $(shell gotip env GOPATH)
3+
GOPATH = $(shell $(GO) env GOPATH)
44

55
wasip1.test: go.mod $(wildcard wasip1/*.go)
6-
GOARCH=wasm GOOS=wasip1 gotip test -c ./wasip1
6+
GOARCH=wasm GOOS=wasip1 $(GO) test -c ./wasip1
77

88
test: wasirun wasip1.test
99
wasirun wasip1.test -test.v
1010

1111
wasirun: $(GOPATH)/bin/wasirun
1212

1313
$(GOPATH)/bin/wasirun:
14-
gotip install github.com/stealthrocket/wasi-go/cmd/wasirun@latest
14+
$(GO) install github.com/stealthrocket/wasi-go/cmd/wasirun@latest

0 commit comments

Comments
 (0)