Skip to content

Commit 28f6a57

Browse files
committed
chore: wasm was a little troublemaker
1 parent 2c3b60a commit 28f6a57

29 files changed

+1
-2030
lines changed

.github/workflows/tests.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ jobs:
2828
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
2929
with:
3030
go-version-file: '${{ github.workspace }}/go.mod'
31-
- uses: acifani/setup-tinygo@b2ba42b249c7d3efdfe94166ec0f48b3191404f7
32-
with:
33-
tinygo-version: '0.37.0'
3431
- name: Restore Go cache
3532
uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f
3633
with:

Makefile

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ LOCALBIN ?= $(shell pwd)/bin
3232
$(LOCALBIN):
3333
mkdir -p $(LOCALBIN)
3434

35-
GO_WASM_BUILD = tinygo build -target=wasi -panic=trap -scheduler=none -no-debug -o
36-
3735
.PHONY: all
3836
all: build
3937

@@ -89,9 +87,8 @@ lint: golangci-lint ## Run golangci-lint.
8987

9088
##@ Testing
9189

92-
# Note: Requires tinygo (0.31.2) and wasm-opt
9390
.PHONY: test
94-
test: manifests generate fmt vet build-wasm-testdata envtest ## Run tests.
91+
test: manifests generate fmt vet envtest ## Run tests.
9592
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test ./... -coverprofile cover.out
9693

9794
.PHONY: e2e
@@ -106,11 +103,6 @@ e2e-verbose: prime-test-cluster test-summary-tool ## Runs e2e tests in verbose
106103
prime-test-cluster: mkcert
107104
./hack/prime_test_cluster.sh
108105

109-
.PHONY: build-wasm-testdata
110-
build-wasm-testdata:
111-
${GO_WASM_BUILD} ./internal/wasm/hostfuncs/resource/testdata/get_resource_bytes.wasm ./internal/wasm/hostfuncs/resource/testdata/get_resource_bytes.go
112-
${GO_WASM_BUILD} ./internal/wasm/hostfuncs/resource/testdata/get_resource_labels.wasm ./internal/wasm/hostfuncs/resource/testdata/get_resource_labels.go
113-
${GO_WASM_BUILD} ./internal/wasm/hostfuncs/resource/testdata/get_resource_url.wasm ./internal/wasm/hostfuncs/resource/testdata/get_resource_url.go
114106
##@ Build
115107

116108
.PHONY: build

api/v1alpha1/resourcepipeline_types.go

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

0 commit comments

Comments
 (0)