Skip to content

Commit 1a4df39

Browse files
authored
add Github Action to build app (#6)
1 parent 1da7675 commit 1a4df39

File tree

1 file changed

+17
-21
lines changed

1 file changed

+17
-21
lines changed

.github/workflows/build.yaml

+17-21
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
1-
name: CI
1+
name: "FAP: Build"
22

3-
on:
4-
push:
5-
branches: [ main ]
3+
on: [push]
64

75
jobs:
8-
build-fap:
6+
ufbt-build-action:
97
runs-on: ubuntu-latest
10-
container:
11-
image: an4tur0r/flipperzero-unleashed:latest
12-
env:
13-
APP_NAME: xbox_controller
14-
volumes:
15-
- ${{ github.workspace }}:/flipperzero-unleashed/applications_user/xbox_controller
16-
options: --cpus 1
8+
name: 'ufbt: Build'
179
steps:
18-
- uses: actions/checkout@v3
19-
- name: Build
20-
run: |
21-
cd /flipperzero-unleashed
22-
./fbt fap_xbox_controller
23-
cp build/f7-firmware-D/.extapps/xbox_controller.fap applications_user/xbox_controller/
24-
- uses: actions/upload-artifact@v3
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
13+
- name: Build with ufbt
14+
uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
15+
id: build-app
16+
with:
17+
sdk-channel: release
18+
19+
- name: Upload app artifacts
20+
uses: actions/upload-artifact@v3
2521
with:
26-
name: xbox_controller
27-
path: ./xbox_controller.fap
22+
name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
23+
path: ${{ steps.build-app.outputs.fap-artifacts }}

0 commit comments

Comments
 (0)