From b2391a1b393b72a8f317a539c704c6e4626cd605 Mon Sep 17 00:00:00 2001 From: WeebDataHoarder <57538841+WeebDataHoarder@users.noreply.github.com> Date: Fri, 19 Apr 2024 17:49:55 +0200 Subject: [PATCH] Added wasm testing to CI --- .drone.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.drone.yml b/.drone.yml index 997bb7d..6a2f2ee 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 curl bash + - curl https://wasmtime.dev/install.sh -sSf | bash -s -- --version v19.0.2 || true + - PATH=$PATH:$HOME/.wasmtime/bin:$(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