Procházet zdrojové kódy

Update and rename Build Flipper Application Package.yml to ufbt.yaml

Zinong Li před 1 rokem
rodič
revize
0ff31daa9c

+ 0 - 28
.github/workflows/Build Flipper Application Package.yml

@@ -1,28 +0,0 @@
-            - name: Build Flipper Application Package (.fap)
-  # You may pin to the exact commit or the version.
-  # uses: flipperdevices/flipperzero-ufbt-action@e7cd34914e61ddc056acd8daaab96d8b4d4d9f55
-  uses: flipperdevices/flipperzero-ufbt-action@v0.1.4
-  with:
-    # Path to application's source code (if not the root of repository)
-    app-dir: # optional, default is .
-    # Task to run. Valid values: 'build', 'lint', 'setup'
-    task: # optional, default is build
-    # Extra arguments to pass to 'ufbt' for build and lint tasks. Default is '-s' to suppress ufbt output and only show subprocess output
-    ufbt-args: # optional, default is -s
-    # Skip ufbt setup. Useful for multiple invocation of the action
-    skip-setup: # optional, default is ${{ false }}
-    # Release channel to use. Matches argument "--channel" for ufbt update
-    sdk-channel: # optional, default is 
-    # Branch to use for updates. Matches argument "--branch" for ufbt update
-    sdk-branch: # optional, default is 
-    # Index URL to use for updates. Matches argument "--index-url" for ufbt update
-    sdk-index-url: # optional, default is 
-    # Path to SDK archive. Matches argument "--local" for ufbt update
-    sdk-file: # optional, default is 
-    # URL to SDK archive. Matches argument "--url" for ufbt update
-    sdk-url: # optional, default is 
-    # Hardware target to use. Matches argument "--hw-target" for ufbt update
-    sdk-hw-target: # optional, default is 
-    # ufbt version to use. Can be 'latest', 'prerelease' or a specific version from PyPI (e.g. '==0.2.1')
-    ufbt-version: # optional, default is latest
-          

+ 36 - 0
.github/workflows/ufbt.yaml

@@ -0,0 +1,36 @@
+name: "uFBT Build"
+on:
+  workflow_dispatch:
+  push:
+    branches: 
+      - main
+      - develop
+  pull_request:
+  # schedule: 
+    # do a build every day
+    # - cron: "1 1 * * *"
+jobs:
+  ufbt-build-action:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        include:
+          - name: dev channel
+            sdk-channel: dev
+          - name: release channel
+            sdk-channel: release
+    name: 'ufbt: Build for ${{ matrix.name }}'
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v4
+      - name: Build with ufbt
+        uses: flipperdevices/flipperzero-ufbt-action@v0.1.3
+        id: build-app
+        with:
+          sdk-channel: ${{ matrix.sdk-channel }}
+          sdk-index-url: ${{ matrix.sdk-index-url }}
+      - 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 }}