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.

68 lines
2.1 KiB

  1. name: "go: build dev binaries"
  2. on:
  3. push:
  4. branches: [ master ]
  5. jobs:
  6. build:
  7. name: Build
  8. runs-on: ubuntu-latest
  9. strategy:
  10. matrix:
  11. goos: [linux, windows, darwin, freebsd, netbsd, openbsd]
  12. goarch: [amd64, arm, arm64, 386]
  13. exclude:
  14. - goarch: arm
  15. goos: darwin
  16. - goarch: 386
  17. goos: darwin
  18. - goarch: arm
  19. goos: windows
  20. - goarch: arm64
  21. goos: windows
  22. steps:
  23. - name: Check out code into the Go module directory
  24. uses: actions/checkout@v2
  25. - name: Wait for the deletion
  26. uses: jakejarvis/wait-action@master
  27. with:
  28. time: '30s'
  29. - name: Set BUILD_TIME env
  30. run: echo BUILD_TIME=$(date -u +%Y%m%d-%H%M) >> ${GITHUB_ENV}
  31. - name: Go Release Binaries
  32. uses: wangyoucao577/go-release-action@v1.20
  33. with:
  34. github_token: ${{ secrets.GITHUB_TOKEN }}
  35. goos: ${{ matrix.goos }}
  36. goarch: ${{ matrix.goarch }}
  37. release_tag: dev
  38. overwrite: true
  39. pre_command: export CGO_ENABLED=0
  40. build_flags: -tags 5BytesOffset # optional, default is
  41. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  42. # Where to run `go build .`
  43. project_path: weed
  44. binary_name: weed-large-disk
  45. asset_name: "weed-large-disk-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"
  46. - name: Go Release Binaries
  47. uses: wangyoucao577/go-release-action@v1.20
  48. with:
  49. github_token: ${{ secrets.GITHUB_TOKEN }}
  50. goos: ${{ matrix.goos }}
  51. goarch: ${{ matrix.goarch }}
  52. release_tag: dev
  53. overwrite: true
  54. pre_command: export CGO_ENABLED=0
  55. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  56. # Where to run `go build .`
  57. project_path: weed
  58. binary_name: weed
  59. asset_name: "weed-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"