build.yaml 961 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: build
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. steps:
  7. -
  8. name: Install Go
  9. uses: actions/setup-go@v2
  10. with:
  11. go-version: '1.18.x'
  12. -
  13. name: Install node
  14. uses: actions/setup-node@v2
  15. with:
  16. node-version: '17'
  17. -
  18. name: Checkout code
  19. uses: actions/checkout@v2
  20. -
  21. name: Cache Go and npm modules
  22. uses: actions/cache@v3
  23. with:
  24. path: |
  25. ~/go/pkg/mod
  26. ~/go/bin
  27. ~/.npm
  28. web/node_modules
  29. key: ${{ runner.os }}-ntfy-${{ hashFiles('**/go.sum', '**/package.lock') }}
  30. restore-keys: ${{ runner.os }}-ntfy-
  31. -
  32. name: Install dependencies
  33. run: make build-deps-ubuntu
  34. -
  35. name: Build all the things
  36. run: make build
  37. -
  38. name: Print build results and checksums
  39. run: make cli-build-results