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.

70 lines
2.1 KiB

  1. name: 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: arm64
  19. goos: windows
  20. - goarch: arm
  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.17
  33. with:
  34. goversion: 1.17
  35. github_token: ${{ secrets.GITHUB_TOKEN }}
  36. goos: ${{ matrix.goos }}
  37. goarch: ${{ matrix.goarch }}
  38. release_tag: dev
  39. overwrite: true
  40. pre_command: export CGO_ENABLED=0
  41. build_flags: -tags 5BytesOffset # optional, default is
  42. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  43. # Where to run `go build .`
  44. project_path: weed
  45. binary_name: weed-large-disk
  46. asset_name: "weed-large-disk-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"
  47. - name: Go Release Binaries
  48. uses: wangyoucao577/go-release-action@v1.17
  49. with:
  50. goversion: 1.17
  51. github_token: ${{ secrets.GITHUB_TOKEN }}
  52. goos: ${{ matrix.goos }}
  53. goarch: ${{ matrix.goarch }}
  54. release_tag: dev
  55. overwrite: true
  56. pre_command: export CGO_ENABLED=0
  57. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  58. # Where to run `go build .`
  59. project_path: weed
  60. binary_name: weed
  61. asset_name: "weed-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"