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@84cbf8094393cdc5fe1fe1671ff2647332956b1a # 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@629c2de402a417ea7690ca6ce3f33229e27606a5 # 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 ./...