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.

59 lines
2.1 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 ]
  15. goarch: [amd64, arm]
  16. exclude:
  17. - goarch: arm
  18. goos: darwin
  19. - goarch: arm
  20. goos: windows
  21. # Steps represent a sequence of tasks that will be executed as part of the job
  22. steps:
  23. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  24. - uses: actions/checkout@v2
  25. - name: Go Release Binaries
  26. uses: wangyoucao577/go-release-action@v1.19
  27. with:
  28. goversion: 1.17
  29. github_token: ${{ secrets.GITHUB_TOKEN }}
  30. goos: ${{ matrix.goos }}
  31. goarch: ${{ matrix.goarch }}
  32. overwrite: true
  33. pre_command: export CGO_ENABLED=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@v1.19
  42. with:
  43. goversion: 1.17
  44. github_token: ${{ secrets.GITHUB_TOKEN }}
  45. goos: ${{ matrix.goos }}
  46. goarch: ${{ matrix.goarch }}
  47. overwrite: true
  48. pre_command: export CGO_ENABLED=0
  49. build_flags: -tags 5BytesOffset # optional, default is
  50. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  51. # Where to run `go build .`
  52. project_path: weed
  53. binary_name: weed
  54. asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}_large_disk"