go.yml 847 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: "go: build binary"
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. concurrency:
  8. group: ${{ github.head_ref }}/go
  9. cancel-in-progress: true
  10. permissions:
  11. contents: read
  12. jobs:
  13. build:
  14. name: Build
  15. runs-on: ubuntu-latest
  16. steps:
  17. - name: Set up Go 1.x
  18. uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v2
  19. with:
  20. go-version: ^1.13
  21. id: go
  22. - name: Check out code into the Go module directory
  23. uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
  24. - name: Get dependencies
  25. run: |
  26. cd weed; go get -v -t -d ./...
  27. - name: Build
  28. run: cd weed; go build -tags "elastic gocdk sqlite ydb tikv rclone" -v .
  29. - name: Test
  30. run: cd weed; go test -tags "elastic gocdk sqlite ydb tikv rclone" -v ./...