You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
833 B

3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  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@d0a58c1c4d2b25278816e339b944508c875f3613 # 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@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # 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 ./...