build.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 "braches"
  8. #branches:
  9. # - master
  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. fail-fast: false
  19. matrix:
  20. include:
  21. - name: dev channel
  22. sdk-channel: dev
  23. - name: release channel
  24. sdk-channel: release
  25. # You can add unofficial channels here. See ufbt action docs for more info.
  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.1
  32. id: build-app
  33. with:
  34. sdk-channel: ${{ matrix.sdk-channel }}
  35. - name: Upload app artifacts
  36. uses: actions/upload-artifact@v4
  37. with:
  38. # See ufbt action docs for other output variables
  39. name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
  40. path: ${{ steps.build-app.outputs.fap-artifacts }}