build.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: "UV Meter: Build for multiple SDK sources"
  2. # This will build your app for dev and release channels on GitHub.
  3. # It will also build your app every day to make sure it's up to date with the latest SDK changes.
  4. # See https://github.com/marketplace/actions/build-flipper-application-package-fap for more information
  5. on:
  6. push:
  7. branches:
  8. - main
  9. pull_request:
  10. branches:
  11. - '**'
  12. schedule:
  13. # do a build every day
  14. - cron: "1 1 * * *"
  15. jobs:
  16. ufbt-build:
  17. runs-on: ubuntu-latest
  18. strategy:
  19. matrix:
  20. include:
  21. - name: Official Dev channel
  22. sdk-channel: dev
  23. - name: Official Release channel
  24. sdk-channel: release
  25. - name: Unleashed Dev
  26. sdk-index-url: https://up.unleashedflip.com/directory.json
  27. sdk-channel: dev
  28. - name: Unleashed Release
  29. sdk-index-url: https://up.unleashedflip.com/directory.json
  30. sdk-channel: release
  31. - name: Momentum Dev
  32. sdk-index-url: https://up.momentum-fw.dev/firmware/directory.json
  33. sdk-channel: dev
  34. - name: Momentum Release
  35. sdk-index-url: https://up.momentum-fw.dev/firmware/directory.json
  36. sdk-channel: release
  37. name: 'ufbt: Build for ${{ matrix.name }}'
  38. steps:
  39. - name: Checkout
  40. uses: actions/checkout@v4
  41. - name: Build with ufbt
  42. uses: flipperdevices/flipperzero-ufbt-action@v0.1.3
  43. id: build-app
  44. with:
  45. sdk-channel: ${{ matrix.sdk-channel }}
  46. sdk-index-url: ${{ matrix.sdk-index-url }}
  47. - name: Upload app artifacts
  48. uses: actions/upload-artifact@v4
  49. with:
  50. name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
  51. path: ${{ steps.build-app.outputs.fap-artifacts }}