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:
dependencies:
go.dev: ^1.21
go.dev: ^1.22
npmjs.com: '*'
nodejs.org: '*'
script:
@ -23,7 +23,10 @@ build:
- npm run build
- go mod download
- 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:
BUILDLOC: '{{prefix}}/bin/pixlet'
LDFLAGS: