Kaynağa Gözat

Update main.yml

Luu 1 yıl önce
ebeveyn
işleme
d4bfd6bb0f
1 değiştirilmiş dosya ile 42 ekleme ve 3 silme
  1. 42 3
      .github/workflows/main.yml

+ 42 - 3
.github/workflows/main.yml

@@ -1,3 +1,42 @@
-- name: Build Flipper Application Package (.fap)
-  uses: flipperdevices/flipperzero-ufbt-action@v0.1.3
-            
+name: UFBT Build and Test
+
+on:
+  push:
+    branches:
+      - main
+  pull_request:
+    branches:
+      - main
+
+jobs:
+  build:
+    name: Build and Test Application
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout Repository
+        uses: actions/checkout@v3
+
+      - name: Set up Python
+        uses: actions/setup-python@v4
+        with:
+          python-version: '3.x'
+
+      - name: Install UFBT
+        run: |
+          python3 -m pip install --upgrade pip
+          pip install ufbt
+
+      - name: Initialize UFBT Environment
+        run: |
+          ufbt update
+          ufbt vscode_dist
+
+      - name: Build FAP Applications
+        run: ufbt faps
+
+      - name: Upload Build Artifacts
+        uses: actions/upload-artifact@v3
+        with:
+          name: build-output
+          path: build/