Просмотр исходного кода

Enable CI build

`build.yml` is directly from the action's example, except targeting release (not dev).

https://github.com/marketplace/actions/build-flipper-application-package-fap
Henry Gabryjelski 2 лет назад
Родитель
Сommit
cc12eed4c3
1 измененных файлов с 27 добавлено и 0 удалено
  1. 27 0
      .github/workflows/build.yml

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

@@ -0,0 +1,27 @@
+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@v3
+      - name: Build with ufbt
+        uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
+        id: build-app
+        with:
+          # Set to 'release' to build for latest published release version
+          sdk-channel: release
+      - 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.2
+        with:
+          # skip SDK setup, we already did it in previous step
+          skip-setup: true
+          task: lint