main.yml 812 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: UFBT Build and Test
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. branches:
  8. - main
  9. jobs:
  10. build:
  11. name: Build and Test Application
  12. runs-on: ubuntu-latest
  13. steps:
  14. - name: Checkout Repository
  15. uses: actions/checkout@v3
  16. - name: Set up Python
  17. uses: actions/setup-python@v4
  18. with:
  19. python-version: '3.x'
  20. - name: Install UFBT
  21. run: |
  22. python3 -m pip install --upgrade pip
  23. pip install ufbt
  24. - name: Initialize UFBT Environment
  25. run: |
  26. ufbt update
  27. ufbt vscode_dist
  28. - name: Build FAP Applications
  29. run: ufbt faps
  30. - name: Upload Build Artifacts
  31. uses: actions/upload-artifact@v3
  32. with:
  33. name: build-output
  34. path: build/