diff --git a/.drone.yml b/.drone.yml index 997bb7d..921ec87 100644 --- a/.drone.yml +++ b/.drone.yml @@ -185,4 +185,31 @@ steps: - apk update - apk add --no-cache git - go test -tags purego -p 1 -failfast -timeout 20m -cover -gcflags=-d=checkptr -v . +--- +kind: pipeline +type: docker +name: go-wasm-purego +platform: + os: linux + arch: arm64 + +environment: + GOPROXY: direct + GOARCH: wasm + GOOS: wasip1 + GOTRACEBACK: 2 + GOEXPERIMENT: "cgocheck2,newinliner" + CGO_ENABLED: "0" + +workspace: + path: /drone/src + +steps: + - name: test + image: golang:1.22-alpine3.19 + commands: + - apk update + - apk add --no-cache git bash + - apk add --no-cache wasmtime --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing + - PATH=$PATH:$(go env GOROOT)/misc/wasm go test -tags purego -p 1 -failfast -timeout 20m -cover -gcflags=-d=checkptr -v . ... \ No newline at end of file