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 34cfab4176
commit 1824c1ecf8
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk

View file

@ -185,4 +185,35 @@ 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"
WASMTIME_HOME: "/drone/src/.wasmtime"
workspace:
path: /drone/src
steps:
- name: test
image: golang:1.22-alpine3.19
commands:
- apk update
- apk add --no-cache git curl bash
- curl https://wasmtime.dev/install.sh -sSf | bash -s -- --version v19.0.2 || true
- go env GOROOT
- ls -lah /drone/src/.wasmtime/bin/wasmtime
- /drone/src/.wasmtime/bin/wasmtime --help
- PATH=$PATH:/drone/src/.wasmtime/bin:$(go env GOROOT)/misc/wasm go test -tags purego -p 1 -failfast -timeout 20m -cover -gcflags=-d=checkptr -v .
...