Skip to content

Commit 92e6d7a

Browse files
committed
New dev branch workflow.
1 parent 85df73f commit 92e6d7a

File tree

4 files changed

+69
-9
lines changed

4 files changed

+69
-9
lines changed

.github/workflows/build-dev.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "Dev Branch - Build & Upload FAP"
2+
on:
3+
push:
4+
branches:
5+
- dev
6+
jobs:
7+
ufbt-build-action:
8+
runs-on: ubuntu-latest
9+
name: "Build: ${{ matrix.name }}."
10+
steps:
11+
- name: "Checkout."
12+
uses: actions/checkout@v3
13+
with:
14+
submodules: recursive
15+
16+
# Flipper Zero ufbt action
17+
# https://github.com/flipperdevices/flipperzero-ufbt-action
18+
- name: "Build app."
19+
uses: flipperdevices/flipperzero-ufbt-action@v0.1
20+
id: build-app
21+
with:
22+
app-dir: ./fap
23+
sdk-channel: dev
24+
25+
- name: "Create zip archive (dev)"
26+
uses: actions/upload-artifact@v3
27+
with:
28+
name: ${{ github.event.repository.name }}-dev-${{ steps.build-app.outputs.suffix }}.zip
29+
path: ${{ steps.build-app.outputs.fap-artifacts }}

.github/workflows/deploy-main.yml .github/workflows/build-release.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
name: "Build & upload."
1+
name: "Release Branch - Build & Upload FAP"
22
on:
33
push:
44
branches:
5-
# Run on push to main.
65
- main
7-
86
schedule:
9-
# Run every day at 00:00 UTC (midnight)
7+
# Run every day at 00:00 UTC (midnight) to build the latest release
8+
# for new and upcoming firmware.
109
- cron: "0 0 * * *"
11-
1210
jobs:
1311
ufbt-build-action:
1412
runs-on: ubuntu-latest
@@ -24,7 +22,7 @@ jobs:
2422
- name: "release"
2523
sdk-channel: release
2624

27-
name: "Build: ${{ matrix.name }} release."
25+
name: "Build: ${{ matrix.name }}."
2826
steps:
2927
- name: "Checkout."
3028
uses: actions/checkout@v3
@@ -33,7 +31,7 @@ jobs:
3331

3432
# Flipper Zero ufbt action
3533
# https://github.com/flipperdevices/flipperzero-ufbt-action
36-
- name: "Build."
34+
- name: "Build app."
3735
uses: flipperdevices/flipperzero-ufbt-action@v0.1
3836
id: build-app
3937
with:
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Dev Branch PR - Lint & Build Test"
2+
on:
3+
pull_request:
4+
branches:
5+
- dev
6+
jobs:
7+
ufbt-test-build-action:
8+
runs-on: ubuntu-latest
9+
name: "PR Build: ${{ matrix.name }}."
10+
steps:
11+
- name: "PR - Checkout."
12+
uses: actions/checkout@v3
13+
with:
14+
submodules: recursive
15+
16+
# Flipper Zero ufbt action
17+
# https://github.com/flipperdevices/flipperzero-ufbt-action
18+
- name: "PR - Build app."
19+
uses: flipperdevices/flipperzero-ufbt-action@v0.1
20+
id: build-app
21+
with:
22+
app-dir: ./fap
23+
sdk-channel: ${{ matrix.sdk-channel }}
24+
25+
- name: "PR - Lint."
26+
uses: flipperdevices/flipperzero-ufbt-action@v0.1
27+
with:
28+
app-dir: ./fap
29+
skip-setup: true
30+
task: lint

.github/workflows/pull-request.yml .github/workflows/pull-request-release.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
name: "PR - Lint & build."
2-
on: pull_request
1+
name: "Release Branch PR - Lint & Build Test"
2+
on:
3+
pull_request:
4+
branches:
5+
- main
36
jobs:
47
ufbt-test-build-action:
58
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)