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.

63 lines
2.2 KiB

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