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.

54 lines
2.1 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. jobs:
  11. build-release-binaries_darwin:
  12. runs-on: ubuntu-latest
  13. strategy:
  14. matrix:
  15. goos: [darwin]
  16. goarch: [amd64, arm64]
  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@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
  21. - name: Go Release Binaries Normal Volume Size
  22. uses: wangyoucao577/go-release-action@16624612d4e2b73de613857a362d294700207fff # 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@16624612d4e2b73de613857a362d294700207fff # 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"