Skip to content

Commit 62c288a

Browse files
authored
Merge pull request #4 from ElectronicCats/build-action
Build action
2 parents 8602051 + 139381a commit 62c288a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/build.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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@v4
10+
- name: Build with ufbt
11+
uses: flipperdevices/flipperzero-ufbt-action@v0.1.3
12+
id: build-app
13+
with:
14+
# Set to 'release' to build for latest published release version or dev for develop
15+
sdk-channel: release
16+
app-dir: ./Canbus_app/
17+
- name: Upload app artifacts
18+
uses: actions/upload-artifact@v3
19+
with:
20+
name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
21+
path: ${{ steps.build-app.outputs.fap-artifacts }}
22+
# You can remove this step if you don't want to check source code formatting
23+
- name: Lint sources
24+
uses: flipperdevices/flipperzero-ufbt-action@v0.1.3
25+
with:
26+
# skip SDK setup, we already did it in previous step
27+
skip-setup: true
28+
task: lint

0 commit comments

Comments
 (0)