Added wasm testing to CI
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
34cfab4176
commit
d72726b0fe
27
.drone.yml
27
.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 .
|
||||
...
|
Loading…
Reference in a new issue