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.

174 lines
6.8 KiB

  1. # This is a basic workflow to help you get started with Actions
  2. name: "go: build versioned binaries"
  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.20
  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
  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.20
  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
  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"
  49. build-release-binaries_linux:
  50. runs-on: ubuntu-latest
  51. strategy:
  52. matrix:
  53. goos: [linux]
  54. goarch: [amd64, arm, arm64]
  55. # Steps represent a sequence of tasks that will be executed as part of the job
  56. steps:
  57. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  58. - uses: actions/checkout@v2
  59. - name: Go Release Binaries Normal Volume Size
  60. uses: wangyoucao577/go-release-action@v1.20
  61. with:
  62. github_token: ${{ secrets.GITHUB_TOKEN }}
  63. goos: ${{ matrix.goos }}
  64. goarch: ${{ matrix.goarch }}
  65. overwrite: true
  66. pre_command: export CGO_ENABLED=0
  67. # build_flags: -tags 5BytesOffset # optional, default is
  68. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  69. # Where to run `go build .`
  70. project_path: weed
  71. binary_name: weed
  72. asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
  73. - name: Go Release Large Disk Binaries
  74. uses: wangyoucao577/go-release-action@v1.20
  75. with:
  76. github_token: ${{ secrets.GITHUB_TOKEN }}
  77. goos: ${{ matrix.goos }}
  78. goarch: ${{ matrix.goarch }}
  79. overwrite: true
  80. pre_command: export CGO_ENABLED=0
  81. build_flags: -tags 5BytesOffset # optional, default is
  82. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  83. # Where to run `go build .`
  84. project_path: weed
  85. binary_name: weed
  86. asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}_large_disk"
  87. build-release-binaries_darwin:
  88. runs-on: ubuntu-latest
  89. strategy:
  90. matrix:
  91. goos: [darwin]
  92. goarch: [amd64, arm64]
  93. # Steps represent a sequence of tasks that will be executed as part of the job
  94. steps:
  95. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  96. - uses: actions/checkout@v2
  97. - name: Go Release Binaries Normal Volume Size
  98. uses: wangyoucao577/go-release-action@v1.20
  99. with:
  100. github_token: ${{ secrets.GITHUB_TOKEN }}
  101. goos: ${{ matrix.goos }}
  102. goarch: ${{ matrix.goarch }}
  103. overwrite: true
  104. pre_command: export CGO_ENABLED=0
  105. # build_flags: -tags 5BytesOffset # optional, default is
  106. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  107. # Where to run `go build .`
  108. project_path: weed
  109. binary_name: weed
  110. asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
  111. - name: Go Release Large Disk Binaries
  112. uses: wangyoucao577/go-release-action@v1.20
  113. with:
  114. github_token: ${{ secrets.GITHUB_TOKEN }}
  115. goos: ${{ matrix.goos }}
  116. goarch: ${{ matrix.goarch }}
  117. overwrite: true
  118. pre_command: export CGO_ENABLED=0
  119. build_flags: -tags 5BytesOffset # optional, default is
  120. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  121. # Where to run `go build .`
  122. project_path: weed
  123. binary_name: weed
  124. asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}_large_disk"
  125. build-release-binaries_freebsd:
  126. runs-on: ubuntu-latest
  127. strategy:
  128. matrix:
  129. goos: [freebsd]
  130. goarch: [amd64, arm, arm64]
  131. # Steps represent a sequence of tasks that will be executed as part of the job
  132. steps:
  133. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  134. - uses: actions/checkout@v2
  135. - name: Go Release Binaries Normal Volume Size
  136. uses: wangyoucao577/go-release-action@v1.20
  137. with:
  138. github_token: ${{ secrets.GITHUB_TOKEN }}
  139. goos: ${{ matrix.goos }}
  140. goarch: ${{ matrix.goarch }}
  141. overwrite: true
  142. pre_command: export CGO_ENABLED=0
  143. # build_flags: -tags 5BytesOffset # optional, default is
  144. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  145. # Where to run `go build .`
  146. project_path: weed
  147. binary_name: weed
  148. asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
  149. - name: Go Release Large Disk Binaries
  150. uses: wangyoucao577/go-release-action@v1.20
  151. with:
  152. github_token: ${{ secrets.GITHUB_TOKEN }}
  153. goos: ${{ matrix.goos }}
  154. goarch: ${{ matrix.goarch }}
  155. overwrite: true
  156. pre_command: export CGO_ENABLED=0
  157. build_flags: -tags 5BytesOffset # optional, default is
  158. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  159. # Where to run `go build .`
  160. project_path: weed
  161. binary_name: weed
  162. asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}_large_disk"