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.

78 lines
2.3 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, ppc64le, s390x]
  13. exclude:
  14. - goarch: arm
  15. goos: darwin
  16. - goarch: 386
  17. goos: darwin
  18. - goarch: ppc64le
  19. goos: darwin
  20. - goarch: s390x
  21. goos: darwin
  22. - goarch: arm
  23. goos: windows
  24. - goarch: arm64
  25. goos: windows
  26. - goarch: ppc64le
  27. goos: windows
  28. - goarch: s390x
  29. goos: windows
  30. steps:
  31. - name: Check out code into the Go module directory
  32. uses: actions/checkout@v2
  33. - name: Wait for the deletion
  34. uses: jakejarvis/wait-action@master
  35. with:
  36. time: '30s'
  37. - name: Set BUILD_TIME env
  38. run: echo BUILD_TIME=$(date -u +%Y%m%d-%H%M) >> ${GITHUB_ENV}
  39. - name: Go Release Binaries
  40. uses: wangyoucao577/go-release-action@v1.17
  41. with:
  42. goversion: 1.17
  43. github_token: ${{ secrets.GITHUB_TOKEN }}
  44. goos: ${{ matrix.goos }}
  45. goarch: ${{ matrix.goarch }}
  46. release_tag: dev
  47. overwrite: true
  48. pre_command: export CGO_ENABLED=0
  49. build_flags: -tags 5BytesOffset # optional, default is
  50. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  51. # Where to run `go build .`
  52. project_path: weed
  53. binary_name: weed-large-disk
  54. asset_name: "weed-large-disk-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"
  55. - name: Go Release Binaries
  56. uses: wangyoucao577/go-release-action@v1.17
  57. with:
  58. goversion: 1.17
  59. github_token: ${{ secrets.GITHUB_TOKEN }}
  60. goos: ${{ matrix.goos }}
  61. goarch: ${{ matrix.goarch }}
  62. release_tag: dev
  63. overwrite: true
  64. pre_command: export CGO_ENABLED=0
  65. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  66. # Where to run `go build .`
  67. project_path: weed
  68. binary_name: weed
  69. asset_name: "weed-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"