pantry/projects/encore.dev/go/package.yml

53 lines
969 B
YAML
Raw Normal View History

distributable: ~
versions:
github: encoredev/go
strip: /^encore-go/
2023-09-11 22:50:20 +03:00
display-name: encore-go
provides:
2023-09-28 15:41:38 +03:00
- bin/encore-go
dependencies:
curl.se/ca-certs: '*'
warnings:
- vendored
runtime:
env:
ENCORE_GOROOT: ${{prefix}}
build:
dependencies:
curl.se: '*'
gnu.org/tar: '*'
script:
- curl -L https://github.com/encoredev/go/releases/download/encore-go{{version}}/$TYPE.tar.gz | tar zxvf -
- run: cp -a $SRCROOT/encore-go/* .
working-directory: ${{prefix}}
2023-09-28 21:07:12 +03:00
- run: ln -s go encore-go
2023-09-28 15:41:38 +03:00
working-directory: ${{prefix}}/bin
env:
linux/x86-64:
TYPE: linux_x86-64
linux/aarch64:
TYPE: linux_arm64
darwin/x86-64:
TYPE: macos_x86-64
darwin/aarch64:
TYPE: macos_arm64
test:
script: |
mv $FIXTURE $FIXTURE.go
OUTPUT=$(go run $FIXTURE.go)
test "Hello World" = "$OUTPUT"
fixture: |
package main
import "fmt"
func main() {
fmt.Println("Hello World")
}