Преглед изворни кода

Add GitHub action to build FAPs for dev and release SDK.

Aaron Mavrinac пре 2 година
родитељ
комит
96f0f59d23
1 измењених фајлова са 35 додато и 0 уклоњено
  1. 35 0
      .github/workflows/build.yml

+ 35 - 0
.github/workflows/build.yml

@@ -0,0 +1,35 @@
+name: "FAP: Build for dev and release SDK"
+on:
+  push:
+    branches:
+      - main 
+  pull_request:
+  schedule:
+    - 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@v3
+        with:
+          submodules: recursive
+      - name: Build with ufbt
+        uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
+        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 }}