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.

71 lines
2.1 KiB

  1. name: "go: build dev binaries"
  2. on:
  3. push:
  4. branches: [ master ]
  5. jobs:
  6. cleanup:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - name: Delete old release assets
  10. uses: mknejp/delete-release-assets@v1
  11. with:
  12. token: ${{ github.token }}
  13. tag: dev
  14. fail-if-no-assets: false
  15. assets: |
  16. weed-*
  17. build_dev:
  18. needs: cleanup
  19. runs-on: ubuntu-latest
  20. strategy:
  21. matrix:
  22. goos: [linux, windows, darwin, freebsd]
  23. goarch: [amd64, arm64]
  24. exclude:
  25. - goarch: arm64
  26. goos: windows
  27. steps:
  28. - name: Check out code into the Go module directory
  29. uses: actions/checkout@v2
  30. - name: Set BUILD_TIME env
  31. run: echo BUILD_TIME=$(date -u +%Y%m%d-%H%M) >> ${GITHUB_ENV}
  32. - name: Go Release Binaries Large Disk
  33. uses: wangyoucao577/go-release-action@v1.20
  34. with:
  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 Normal Volume Size
  48. uses: wangyoucao577/go-release-action@v1.20
  49. with:
  50. github_token: ${{ secrets.GITHUB_TOKEN }}
  51. goos: ${{ matrix.goos }}
  52. goarch: ${{ matrix.goarch }}
  53. release_tag: dev
  54. overwrite: true
  55. pre_command: export CGO_ENABLED=0
  56. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  57. # Where to run `go build .`
  58. project_path: weed
  59. binary_name: weed-normal-disk
  60. asset_name: "weed-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"