build.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: "FAP: 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. ## put your main branch name under "branches"
  8. branches:
  9. - main
  10. pull_request:
  11. schedule:
  12. # do a build every day
  13. - cron: "1 1 * * *"
  14. jobs:
  15. ufbt-build:
  16. runs-on: ubuntu-latest
  17. strategy:
  18. matrix:
  19. include:
  20. - name: dev channel
  21. sdk-channel: dev
  22. - name: release channel
  23. sdk-channel: release
  24. # You can add unofficial channels here. See ufbt action docs for more info.
  25. name: 'ufbt: Build for ${{ matrix.name }}'
  26. steps:
  27. - name: Checkout
  28. uses: actions/checkout@v4
  29. - name: Build with ufbt
  30. uses: flipperdevices/flipperzero-ufbt-action@v0.1
  31. id: build-app
  32. with:
  33. sdk-channel: ${{ matrix.sdk-channel }}
  34. - name: Upload app artifacts
  35. uses: actions/upload-artifact@v4
  36. with:
  37. # See ufbt action docs for other output variables
  38. name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
  39. path: ${{ steps.build-app.outputs.fap-artifacts }}