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.

55 lines
2.2 KiB

  1. # This is a basic workflow to help you get started with Actions
  2. name: CI
  3. # Controls when the action will run. Triggers the workflow on push or pull request
  4. # events but only for the master branch
  5. on:
  6. push:
  7. branches: [ master ]
  8. pull_request:
  9. branches: [ master ]
  10. # A workflow run is made up of one or more jobs that can run sequentially or in parallel
  11. jobs:
  12. # This workflow contains a single job called "build"
  13. build:
  14. # The type of runner that the job will run on
  15. runs-on: ubuntu-latest
  16. # Steps represent a sequence of tasks that will be executed as part of the job
  17. steps:
  18. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  19. - uses: actions/checkout@v2
  20. # Runs a single command using the runners shell
  21. - name: Run a one-line script
  22. run: echo Hello, world!
  23. # Runs a set of commands using the runners shell
  24. - name: Run a multi-line script
  25. run: |
  26. echo Add other actions to build,
  27. echo test, and deploy your project.
  28. - name: Go Release Binaries
  29. uses: wangyoucao577/go-release-action@v1.8
  30. with:
  31. # GITHUB_TOKEN for uploading releases to Github asserts.
  32. github_token: ${{ secrets.GITHUB_TOKEN }}
  33. # GOOS is the running programs operating system target: one of darwin, freebsd, linux, and so on.
  34. goos: linux # default is
  35. # GOARCH is the running programs architecture target: one of 386, amd64, arm, s390x, and so on.
  36. goarch: amd64 # default is
  37. # The `Go` compiler version.
  38. goversion: 1.14 # optional, default is
  39. # Additional arguments to pass the go build command.
  40. build_flags: -tags 5BytesOffset # optional, default is
  41. # Values to provide to the -ldflags argument
  42. ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
  43. # Where to run `go build .`
  44. project_path: weed
  45. # Specify another binary name if do not want to use repository basename
  46. binary_name: weed_large_disk
  47. # Extra command that will be executed before `go build`, may for solving dependency