|
@@ -3,25 +3,34 @@ on: [push, pull_request]
|
|
|
jobs:
|
|
jobs:
|
|
|
ufbt-build-action:
|
|
ufbt-build-action:
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
- name: 'ufbt: Build for Dev branch'
|
|
|
|
|
|
|
+ name: 'ufbt: Build for Release branch'
|
|
|
steps:
|
|
steps:
|
|
|
- name: Checkout
|
|
- name: Checkout
|
|
|
uses: actions/checkout@v3
|
|
uses: actions/checkout@v3
|
|
|
|
|
+
|
|
|
|
|
+ - name: Setup ufbt
|
|
|
|
|
+ uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
|
|
|
|
|
+ with:
|
|
|
|
|
+ task: setup
|
|
|
|
|
+ sdk-channel: release
|
|
|
|
|
+
|
|
|
- name: Build with ufbt
|
|
- name: Build with ufbt
|
|
|
uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
|
|
uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
|
|
|
id: build-app
|
|
id: build-app
|
|
|
with:
|
|
with:
|
|
|
- # Set to 'release' to build for latest published release version
|
|
|
|
|
|
|
+ skip-setup: true
|
|
|
sdk-channel: release
|
|
sdk-channel: release
|
|
|
|
|
+
|
|
|
- name: Upload app artifacts
|
|
- name: Upload app artifacts
|
|
|
uses: actions/upload-artifact@v3
|
|
uses: actions/upload-artifact@v3
|
|
|
with:
|
|
with:
|
|
|
name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
|
|
name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
|
|
|
path: ${{ steps.build-app.outputs.fap-artifacts }}
|
|
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
|
|
|
|
|
|
|
+
|
|
|
|
|
+ # # 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
|