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.

59 lines
2.3 KiB

  1. # This is a basic workflow to help you get started with Actions
  2. name: "go: build versioned binaries for windows"
  3. on:
  4. push:
  5. tags:
  6. - '*'
  7. # Allows you to run this workflow manually from the Actions tab
  8. workflow_dispatch:
  9. # A workflow run is made up of one or more jobs that can run sequentially or in parallel
  10. permissions:
  11. contents: read
  12. jobs:
  13. build-release-binaries_windows:
  14. permissions:
  15. contents: write # for wangyoucao577/go-release-action to upload release assets
  16. runs-on: ubuntu-latest
  17. strategy:
  18. matrix:
  19. goos: [windows]
  20. goarch: [amd64]
  21. # Steps represent a sequence of tasks that will be executed as part of the job
  22. steps:
  23. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  24. - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v2
  25. - name: Go Release Binaries Normal Volume Size
  26. uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
  27. with:
  28. github_token: ${{ secrets.GITHUB_TOKEN }}
  29. goos: ${{ matrix.goos }}
  30. goarch: ${{ matrix.goarch }}
  31. overwrite: true
  32. pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
  33. # build_flags: -tags 5BytesOffset # optional, default is
  34. ldflags: -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
  35. # Where to run `go build .`
  36. project_path: weed
  37. binary_name: weed
  38. asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
  39. - name: Go Release Large Disk Binaries
  40. uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
  41. with:
  42. github_token: ${{ secrets.GITHUB_TOKEN }}
  43. goos: ${{ matrix.goos }}
  44. goarch: ${{ matrix.goarch }}
  45. overwrite: true
  46. pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
  47. build_flags: -tags 5BytesOffset # optional, default is
  48. ldflags: -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
  49. # Where to run `go build .`
  50. project_path: weed
  51. binary_name: weed
  52. asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}_large_disk"