~nromdotcom/gemif

fe174091730a8af68e379f89467fec1625c16611 — Norm MacLennan 1 year, 4 months ago a841a13
build: Install go1.16 directly rather than upgrading
2 files changed, 4 insertions(+), 10 deletions(-)

M .build.yml
M Makefile
M .build.yml => .build.yml +3 -9
@@ 1,39 1,33 @@
image: debian/testing
packages:
  - golang
  - make
  - curl
sources:
  - https://git.sr.ht/~nromdotcom/gemif
environment:
  PATH: /usr/local/bin:/usr/bin:/bin:/home/build/go/bin
  PATH: /usr/local/bin:/usr/bin:/bin:/home/build/go/bin:/usr/local/go/bin
secrets:
  - 86622fb8-f9da-442b-9208-318553a9a4f7
tasks:
  - setup: |
      go get golang.org/dl/go1.16
      go1.16 download
      alias go=go1.16
      curl https://golang.org/dl/go1.16.linux-amd64.tar.gz -o go1.16.linux-amd64.tar.gz -L
      sudo tar -C /usr/local -xzf go1.16.linux-amd64.tar.gz
      go get -u golang.org/x/lint/golint
      curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.36.0
      cd gemif
      make init
  - lint: |
      cd gemif
      alias go=go1.16
      make nonmegalint
      make megalintci
  - test: |
      cd gemif
      alias go=go1.16
      make test
  - build: |
      cd gemif
      alias go=go1.16
      make build
  - release: |
      cd gemif
      alias go=go1.16
      set +x
      . ~/.srht_token
      set -x

M Makefile => Makefile +1 -1
@@ 41,7 41,7 @@ gemif-build: clean ## Build GemIF server for your native architecture

gemif-build-all: clean ## Build GemIF server for linux and mac
	GOOS=darwin GOARCH=amd64 go build -o ./bin/gemif-darwin-amd64/gemif -ldflags=$(ldflags) $(pkg_root)/cmd/gemif
	GOOS=darwin GOARCH=arm64 go build -o ./bin/gemif-darwin-arm64/gemifc -ldflags=$(ldflags) $(pkg_root)/cmd/gemifc
	GOOS=darwin GOARCH=arm64 go build -o ./bin/gemif-darwin-arm64/gemif -ldflags=$(ldflags) $(pkg_root)/cmd/gemifc
	GOOS=linux GOARCH=amd64 go build -o ./bin/gemif-linux-amd64/gemif -ldflags=$(ldflags) $(pkg_root)/cmd/gemif
	GOOS=linux GOARCH=arm64 go build -o ./bin/gemif-linux-arm64/gemif -ldflags=$(ldflags) $(pkg_root)/cmd/gemif