Explorar o código

update workflow

dunaevai135 %!s(int64=2) %!d(string=hai) anos
pai
achega
52d671c5ad
Modificáronse 1 ficheiros con 22 adicións e 14 borrados
  1. 22 14
      .github/workflows/build_dev.yml

+ 22 - 14
.github/workflows/build_dev.yml

@@ -1,19 +1,27 @@
-name: Build main
-
-on:
-  push:
-    branches:
-      - main
-
+name: "FAP: Build and lint"
+on: [push, pull_request]
 jobs:
-  build_dev:
+  ufbt-build-action:
     runs-on: ubuntu-latest
-
+    name: 'ufbt: Build for Dev branch'
     steps:
       - name: Checkout
-        uses: actions/checkout@v3
-
-      - name: Build
-        uses: oleksiikutuzov/flipperzero-ufbt-action@v1
+        uses: actions/checkout@v4
+      - name: Build with ufbt
+        uses: flipperdevices/flipperzero-ufbt-action@v0.1
+        id: build-app
         with:
-          channel: dev
+          # Set to 'release' to build for latest published release version
+          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 }}
+      # You can remove this step if you don't want to check source code formatting
+      - name: Lint sources
+        uses: flipperdevices/flipperzero-ufbt-action@v0.1
+        with:
+          # skip SDK setup, we already did it in previous step
+          skip-setup: true
+          task: lint