build.yml 911 B

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