build.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: "FAP Build"
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. schedule:
  8. # do a build every day
  9. - cron: "1 1 * * *"
  10. jobs:
  11. ufbt-build-action:
  12. runs-on: ubuntu-latest
  13. strategy:
  14. matrix:
  15. include:
  16. - name: dev channel
  17. sdk-channel: dev
  18. - name: release channel
  19. sdk-channel: release
  20. - name: Unleashed dev
  21. sdk-index-url: https://up.unleashedflip.com/directory.json
  22. sdk-channel: dev
  23. - name: Unleashed release
  24. sdk-index-url: https://up.unleashedflip.com/directory.json
  25. sdk-channel: release
  26. name: 'ufbt: Build for ${{ matrix.name }}'
  27. steps:
  28. - name: Checkout
  29. uses: actions/checkout@v3
  30. with:
  31. submodules: recursive
  32. - name: Build with ufbt
  33. uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
  34. id: build-app
  35. with:
  36. sdk-channel: ${{ matrix.sdk-channel }}
  37. sdk-index-url: ${{ matrix.sdk-index-url }}
  38. - name: Upload app artifacts
  39. uses: actions/upload-artifact@v3
  40. with:
  41. name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
  42. path: ${{ steps.build-app.outputs.fap-artifacts }}