Skip to content

Commit 3b9591e

Browse files
acrocacicoyle
andauthored
Fix: Rebuild all testing wasm files with tinygo 0.34.0 (#3982)
Signed-off-by: Albert Callarisa <[email protected]> Co-authored-by: Cassie Coyle <[email protected]>
1 parent 608a1b0 commit 3b9591e

File tree

34 files changed

+74
-42
lines changed

34 files changed

+74
-42
lines changed

Makefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,25 @@ prettier-format:
256256
.PHONY: conf-tests
257257
conf-tests:
258258
CGO_ENABLED=$(CGO) go test -v -tags=conftests -count=1 ./tests/conformance
259+
260+
################################################################################
261+
# Target: wasm-test-builds #
262+
################################################################################
263+
wasm_targets := \
264+
common/wasm/testdata/args \
265+
common/wasm/testdata/strict \
266+
bindings/wasm/testdata/args \
267+
bindings/wasm/testdata/example \
268+
bindings/wasm/testdata/http \
269+
bindings/wasm/testdata/loop \
270+
middleware/http/wasm/example \
271+
middleware/http/wasm/internal/e2e-guests/config \
272+
middleware/http/wasm/internal/e2e-guests/output \
273+
middleware/http/wasm/internal/e2e-guests/rewrite
274+
275+
.PHONY: wasm-test-builds
276+
wasm-test-builds:
277+
@for target in $(wasm_targets); do \
278+
echo "Building $$target"; \
279+
$(MAKE) -C $$target; \
280+
done

bindings/wasm/Makefile

Lines changed: 0 additions & 3 deletions
This file was deleted.

bindings/wasm/testdata/Makefile

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.PHONY: build
2+
build:
3+
tinygo build -o main.wasm -scheduler=none --no-debug -target=wasi main.go

bindings/wasm/testdata/args/main.wasm

100755100644
4.02 KB
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.PHONY: build
2+
build:
3+
tinygo build -o main.wasm -scheduler=none --no-debug -target=wasi main.go

bindings/wasm/testdata/example/main.wasm

100755100644
3.56 KB
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.PHONY: build
2+
build:
3+
tinygo build -o main.wasm --no-debug -target=wasi main.go

bindings/wasm/testdata/http/main.wasm

100755100644
-1.37 MB
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.PHONY: build
2+
build:
3+
tinygo build -o main.wasm -scheduler=none --no-debug -target=wasi main.go

0 commit comments

Comments
 (0)