ufbt_build.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: "FAP: Build for multiple SDK sources"
  2. on:
  3. push:
  4. branches:
  5. - main
  6. - develop
  7. pull_request:
  8. # schedule:
  9. # do a build every day
  10. # - cron: "1 1 * * *"
  11. jobs:
  12. ufbt-build-action:
  13. runs-on: ubuntu-latest
  14. strategy:
  15. matrix:
  16. include:
  17. - name: dev channel
  18. sdk-channel: dev
  19. - name: release channel
  20. sdk-channel: release
  21. - name: Unofficial firmware
  22. # example URL, replace with a valid one
  23. # you can also use other modes for specifying SDK sources
  24. sdk-index-url: https://flipper.example.com/directory.json
  25. sdk-channel: dev
  26. name: 'ufbt: Build for ${{ matrix.name }}'
  27. steps:
  28. - name: Checkout
  29. uses: actions/checkout@v4
  30. - name: Build with ufbt
  31. uses: flipperdevices/flipperzero-ufbt-action@v0.1.3
  32. id: build-app
  33. with:
  34. sdk-channel: ${{ matrix.sdk-channel }}
  35. sdk-index-url: ${{ matrix.sdk-index-url }}
  36. - name: Upload app artifacts
  37. uses: actions/upload-artifact@v3
  38. with:
  39. name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
  40. path: ${{ steps.build-app.outputs.fap-artifacts }}