Skip to content

Commit 5350136

Browse files
committed
adding CI
1 parent 91831db commit 5350136

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

.github/workflows/build.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
9+
env:
10+
firmware_version: '0.78.1'
11+
12+
jobs:
13+
build:
14+
name: Build
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout Flipper Zero Firmware
18+
uses: actions/checkout@v3
19+
with:
20+
repository: 'flipperdevices/flipperzero-firmware'
21+
ref: ${{ env.firmware_version }}
22+
submodules: true
23+
- name: Checkout
24+
uses: actions/checkout@v3
25+
with:
26+
path: 'applications_user/FlipBIP'
27+
- name: Build
28+
run: ./fbt COMPACT=1 DEBUG=0 faps

.github/workflows/release.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
8+
env:
9+
firmware_version: '0.78.1'
10+
11+
jobs:
12+
build:
13+
name: Build
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Flipper Zero Firmware
17+
uses: actions/checkout@v3
18+
with:
19+
repository: 'flipperdevices/flipperzero-firmware'
20+
ref: ${{ env.firmware_version }}
21+
submodules: true
22+
- name: Checkout
23+
uses: actions/checkout@v3
24+
with:
25+
path: 'applications_user/FlipBIP'
26+
- name: Build
27+
run: ./fbt COMPACT=1 DEBUG=0 faps
28+
- name: Publish
29+
uses: softprops/action-gh-release@v1
30+
with:
31+
files: build/f7-firmware-C/.extapps/FlipBIP.fap
32+
body: Built against firmware v${{ env.firmware_version }}
33+
generate_release_notes: true
34+
fail_on_unmatched_files: true

0 commit comments

Comments
 (0)