binaries_release0.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. jobs:
  11. build-release-binaries_windows:
  12. runs-on: ubuntu-latest
  13. strategy:
  14. matrix:
  15. goos: [windows]
  16. goarch: [amd64]
  17. # Steps represent a sequence of tasks that will be executed as part of the job
  18. steps:
  19. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  20. - uses: actions/checkout@v2
  21. - name: Go Release Binaries Normal Volume Size
  22. uses: wangyoucao577/go-release-action@v1.22
  23. with:
  24. github_token: ${{ secrets.GITHUB_TOKEN }}
  25. goos: ${{ matrix.goos }}
  26. goarch: ${{ matrix.goarch }}
  27. overwrite: true
  28. pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
  29. # build_flags: -tags 5BytesOffset # optional, default is
  30. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  31. # Where to run `go build .`
  32. project_path: weed
  33. binary_name: weed
  34. asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
  35. - name: Go Release Large Disk Binaries
  36. uses: wangyoucao577/go-release-action@v1.22
  37. with:
  38. github_token: ${{ secrets.GITHUB_TOKEN }}
  39. goos: ${{ matrix.goos }}
  40. goarch: ${{ matrix.goarch }}
  41. overwrite: true
  42. pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
  43. build_flags: -tags 5BytesOffset # optional, default is
  44. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  45. # Where to run `go build .`
  46. project_path: weed
  47. binary_name: weed
  48. asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}_large_disk"