fix(pixlet)

closes #6146
This commit is contained in:
Jacob Heider 2024-05-14 16:29:41 -04:00 committed by Jacob Heider
parent f8ca792f68
commit 5bbc9e3cc7

View file

@ -15,7 +15,7 @@ dependencies:
build: build:
dependencies: dependencies:
go.dev: ^1.21 go.dev: ^1.22
npmjs.com: '*' npmjs.com: '*'
nodejs.org: '*' nodejs.org: '*'
script: script:
@ -23,7 +23,10 @@ build:
- npm run build - npm run build
- go mod download - go mod download
- go build -v -trimpath -ldflags="$LDFLAGS" -o $BUILDLOC . - go build -v -trimpath -ldflags="$LDFLAGS" -o $BUILDLOC .
- GOOS=js GOARCH=wasm go build -trimpath -ldflags="-s -w" -o ${BUILDLOC}.wasm tidbyt.dev/pixlet # removed in 0.33.1
# https://github.com/tidbyt/pixlet/pull/1070
- run: GOOS=js GOARCH=wasm go build -trimpath -ldflags="-s -w" -o ${BUILDLOC}.wasm tidbyt.dev/pixlet
if: <0.33.1
env: env:
BUILDLOC: '{{prefix}}/bin/pixlet' BUILDLOC: '{{prefix}}/bin/pixlet'
LDFLAGS: LDFLAGS: