go.yml 833 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@93397bea11091df50f3d7e59dc26a7711a8bcfbe # 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@3df4ab11eba7bda6032a0b82a6bb43b11571feac # 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" -v .
  29. - name: Test
  30. run: cd weed; go test -tags "elastic gocdk sqlite ydb tikv" -v ./...