main.yml 954 B

12345678910111213141516171819202122232425262728
  1. name: "FAP: Build and lint"
  2. on: [push, pull_request]
  3. jobs:
  4. ufbt-build-action:
  5. runs-on: ubuntu-latest
  6. name: 'ufbt: Build for release branch'
  7. steps:
  8. - name: Checkout
  9. uses: actions/checkout@v3
  10. with:
  11. submodules: 'true'
  12. - name: Build with ufbt
  13. uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
  14. id: build-app
  15. with:
  16. sdk-channel: release
  17. - name: Upload app artifacts
  18. uses: actions/upload-artifact@v4
  19. with:
  20. name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
  21. path: ${{ steps.build-app.outputs.fap-artifacts }}
  22. # You can remove this step if you don't want to check source code formatting
  23. - name: Lint sources
  24. uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
  25. with:
  26. # skip SDK setup, we already did it in previous step
  27. skip-setup: true
  28. task: lint