Added wasm testing to CI
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
DataHoarder 2024-04-19 17:49:55 +02:00
parent 833ee24802
commit 2fba46e624
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk

View file

@ -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: wasip1
GOOS: wasm
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 curl
- curl https://wasmtime.dev/install.sh -sSf | bash -s -- v19.0.2
- PATH=$PATH:$(go env GOROOT)/misc/wasm go test -tags purego -p 1 -failfast -timeout 20m -cover -gcflags=-d=checkptr -v .
...