|
|
@@ -8,6 +8,7 @@ on:
|
|
|
branches:
|
|
|
- main
|
|
|
- dev
|
|
|
+
|
|
|
jobs:
|
|
|
build:
|
|
|
name: Build and Test Application
|
|
|
@@ -15,22 +16,34 @@ jobs:
|
|
|
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
|
|
|
+
|
|
|
+ - name: Initialize UFBT Environment (Dev)
|
|
|
+ if: github.ref == 'refs/heads/dev'
|
|
|
run: |
|
|
|
- ufbt update
|
|
|
+ ufbt update --index-url=https://update.flipperzero.one/firmware/directory.json --channel=dev
|
|
|
ufbt vscode_dist
|
|
|
+
|
|
|
+ - name: Initialize UFBT Environment (Main)
|
|
|
+ if: github.ref == 'refs/heads/main'
|
|
|
+ run: |
|
|
|
+ ufbt update --index-url=https://update.flipperzero.one/firmware/directory.json --channel=release
|
|
|
+ ufbt vscode_dist
|
|
|
+
|
|
|
- name: Build FAP Applications
|
|
|
run: ufbt faps
|
|
|
+
|
|
|
- name: Upload Build Artifacts
|
|
|
uses: actions/upload-artifact@v4
|
|
|
with:
|
|
|
name: build-output
|
|
|
- path: build/
|
|
|
+ path: build/
|