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.

60 lines
2.3 KiB

  1. # This is a basic workflow to help you get started with Actions
  2. name: "go: build versioned binaries for darwin"
  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_darwin:
  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: [darwin]
  20. # goarch: [amd64, arm64]
  21. goarch: [amd64]
  22. # Steps represent a sequence of tasks that will be executed as part of the job
  23. steps:
  24. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  25. - uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
  26. - name: Go Release Binaries Normal Volume Size
  27. uses: wangyoucao577/go-release-action@16624612d4e2b73de613857a362d294700207fff # v1.22
  28. with:
  29. github_token: ${{ secrets.GITHUB_TOKEN }}
  30. goos: ${{ matrix.goos }}
  31. goarch: ${{ matrix.goarch }}
  32. overwrite: true
  33. pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
  34. # build_flags: -tags 5BytesOffset # optional, default is
  35. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  36. # Where to run `go build .`
  37. project_path: weed
  38. binary_name: weed
  39. asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
  40. - name: Go Release Large Disk Binaries
  41. uses: wangyoucao577/go-release-action@16624612d4e2b73de613857a362d294700207fff # v1.22
  42. with:
  43. github_token: ${{ secrets.GITHUB_TOKEN }}
  44. goos: ${{ matrix.goos }}
  45. goarch: ${{ matrix.goarch }}
  46. overwrite: true
  47. pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
  48. build_flags: -tags 5BytesOffset # optional, default is
  49. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  50. # Where to run `go build .`
  51. project_path: weed
  52. binary_name: weed
  53. asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}_large_disk"