~zacbrown/api.zacbrown.org-app

a81dc13030e19e9b6589125a77d476783331f5fa — Zac Brown 11 months ago 5eabfe2
Add a .build.yml to automate builds with builds.sr.ht.
1 files changed, 28 insertions(+), 0 deletions(-)

A .build.yml
A .build.yml => .build.yml +28 -0
@@ 0,0 1,28 @@
arch: amd64
environment: {}
image: debian/stable
packages:
  - git
  - curl
repositories: {}
secrets: []
shell: false
sources:
  - https://git.sr.ht/~zacbrown/api.zacbrown.org-app
tasks:
  - setup: |
      mkdir tools
      cd tools
      export GO_PKG_NAME=go1.13.4.linux-amd64.tar.gz
      curl -sSL https://dl.google.com/go/$GO_PKG_NAME > $GO_PKG_NAME
      tar zxf $GO_PKG_NAME
  - build: |-
      export GOROOT=$HOME/tools/go
      export PATH=$PATH:$GOROOT/bin
      export GOPATH=$HOME/go
      mkdir -p go/src/git.sr.ht/zacbrown
      mv api.zacbrown.org-app go/src/git.sr.ht/zacbrown/
      cd go/src/git.sr.ht/zacbrown/api.zacbrown.org-app/
      go get -u
      go build
triggers: []