Skip to content

Commit cc12eed

Browse files
committed
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
1 parent 6c1121e commit cc12eed

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/build.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "FAP: Build and lint"
2+
on: [push, pull_request]
3+
jobs:
4+
ufbt-build-action:
5+
runs-on: ubuntu-latest
6+
name: 'ufbt: Build for Dev branch'
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v3
10+
- name: Build with ufbt
11+
uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
12+
id: build-app
13+
with:
14+
# Set to 'release' to build for latest published release version
15+
sdk-channel: release
16+
- name: Upload app artifacts
17+
uses: actions/upload-artifact@v3
18+
with:
19+
name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
20+
path: ${{ steps.build-app.outputs.fap-artifacts }}
21+
# You can remove this step if you don't want to check source code formatting
22+
- name: Lint sources
23+
uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
24+
with:
25+
# skip SDK setup, we already did it in previous step
26+
skip-setup: true
27+
task: lint

0 commit comments

Comments
 (0)