build_binaries.yml 938 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: Build Binaries
  2. permissions:
  3. contents: read
  4. on:
  5. workflow_dispatch:
  6. push:
  7. tags:
  8. - '[0-9]+.[0-9]+.[0-9]+'
  9. pull_request:
  10. branches: [ main ]
  11. paths:
  12. - '.github/workflows/build_binaries.yml'
  13. - 'Makefile'
  14. - 'go.mod'
  15. - 'go.sum'
  16. - '**.go'
  17. jobs:
  18. build:
  19. name: Build
  20. if: github.repository_owner == 'miniflux'
  21. runs-on: ubuntu-latest
  22. steps:
  23. - name: Checkout
  24. uses: actions/checkout@v6
  25. - name: Set up Golang
  26. uses: actions/setup-go@v6
  27. with:
  28. go-version: stable
  29. check-latest: true
  30. - name: Compile binaries
  31. env:
  32. CGO_ENABLED: 0
  33. run: make build
  34. - name: Upload binaries
  35. if: github.event_name != 'pull_request'
  36. uses: actions/upload-artifact@v7
  37. with:
  38. name: binaries
  39. path: miniflux-*
  40. if-no-files-found: error
  41. retention-days: 5