Przeglądaj źródła

Add GitHub workflow

Ivan Barsukov 1 rok temu
rodzic
commit
480671dcaa
1 zmienionych plików z 24 dodań i 0 usunięć
  1. 24 0
      .github/workflows/build.yaml

+ 24 - 0
.github/workflows/build.yaml

@@ -0,0 +1,24 @@
+name: "FAP: Build and lint"
+on: [push, pull_request]
+jobs:
+  ufbt-build-action:
+    runs-on: ubuntu-latest
+    name: 'ufbt: Build for Dev branch'
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v4
+      - name: Lint sources
+        uses: flipperdevices/flipperzero-ufbt-action@v0.1
+        with:
+          task: lint
+      - name: Build with ufbt
+        uses: flipperdevices/flipperzero-ufbt-action@v0.1
+        id: build-app
+        with:
+          skip-setup: true
+          sdk-channel: dev
+      - name: Upload app artifacts
+        uses: actions/upload-artifact@v3
+        with:
+          name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
+          path: ${{ steps.build-app.outputs.fap-artifacts }}