build.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. name: "FAP: Build for multiple SDK sources"
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. jobs:
  8. ufbt-build-action:
  9. runs-on: ubuntu-latest
  10. strategy:
  11. matrix:
  12. include:
  13. - name: Official Dev channel
  14. sdk-channel: dev
  15. - name: Official Release channel
  16. sdk-channel: release
  17. - name: Unleashed Dev
  18. sdk-index-url: https://up.unleashedflip.com/directory.json
  19. sdk-channel: dev
  20. - name: Unleashed Release
  21. sdk-index-url: https://up.unleashedflip.com/directory.json
  22. sdk-channel: release
  23. name: 'ufbt: Build for ${{ matrix.name }}'
  24. steps:
  25. - name: Checkout
  26. uses: actions/checkout@v3
  27. - name: Build with ufbt
  28. uses: flipperdevices/flipperzero-ufbt-action@v0.1.0
  29. id: build-app
  30. with:
  31. sdk-channel: ${{ matrix.sdk-channel }}
  32. sdk-index-url: ${{ matrix.sdk-index-url }}
  33. - name: Upload app artifacts
  34. uses: actions/upload-artifact@v3
  35. with:
  36. name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
  37. path: ${{ steps.build-app.outputs.fap-artifacts }}