main.yml 911 B

1234567891011121314151617181920212223242526
  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. - name: Build with ufbt
  11. uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
  12. id: build-app
  13. with:
  14. sdk-channel: release
  15. - name: Upload app artifacts
  16. uses: actions/upload-artifact@v3
  17. with:
  18. name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
  19. path: ${{ steps.build-app.outputs.fap-artifacts }}
  20. # You can remove this step if you don't want to check source code formatting
  21. - name: Lint sources
  22. uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
  23. with:
  24. # skip SDK setup, we already did it in previous step
  25. skip-setup: true
  26. task: lint