-
-
Notifications
You must be signed in to change notification settings - Fork 29
97 lines (96 loc) · 4.66 KB
/
release-faps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: "faps-build-and-lint"
on: [push, pull_request]
jobs:
ufbt-build-action:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
name: 'ufbt: Build'
steps:
- name: Checkout
uses: actions/checkout@v4
# below code was generated by copilot https://gist.github.com/eried/87c34bc6da020c1aa4db3316a94c25f4
# build esp32cam_camera
- name: Build with ufbt esp32cam_camera
uses: flipperdevices/[email protected]
id: build-app-esp32cam_camera
with:
sdk-channel: release
app-dir: ./flipper_companion_apps/applications/external/esp32cam_camera/
- name: Upload app artifacts esp32cam_camera
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}-${{ steps.build-app-esp32cam_camera.outputs.suffix }}
path: ${{ steps.build-app-esp32cam_camera.outputs.fap-artifacts }}
# build esp32cam_marauder_companion
- name: Build with ufbt esp32cam_marauder_companion
uses: flipperdevices/[email protected]
id: build-app-esp32cam_marauder_companion
with:
sdk-channel: release
app-dir: ./flipper_companion_apps/applications/external/esp32cam_marauder_companion/
- name: Upload app artifacts esp32cam_marauder_companion
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}-${{ steps.build-app-esp32cam_marauder_companion.outputs.suffix }}
path: ${{ steps.build-app-esp32cam_marauder_companion.outputs.fap-artifacts }}
# build esp32cam_morseflasher
- name: Build with ufbt esp32cam_morseflasher
uses: flipperdevices/[email protected]
id: build-app-esp32cam_morseflasher
with:
sdk-channel: release
app-dir: ./flipper_companion_apps/applications/external/esp32cam_morseflasher/
- name: Upload app artifacts esp32cam_morseflasher
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}-${{ steps.build-app-esp32cam_morseflasher.outputs.suffix }}
path: ${{ steps.build-app-esp32cam_morseflasher.outputs.fap-artifacts }}
# build esp32cam_motion_detection
- name: Build with ufbt esp32cam_motion_detection
uses: flipperdevices/[email protected]
id: build-app-esp32cam_motion_detection
with:
sdk-channel: release
app-dir: ./flipper_companion_apps/applications/external/esp32cam_motion_detection/
- name: Upload app artifacts esp32cam_motion_detection
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}-${{ steps.build-app-esp32cam_motion_detection.outputs.suffix }}
path: ${{ steps.build-app-esp32cam_motion_detection.outputs.fap-artifacts }}
# build esp32cam_nannycam
- name: Build with ufbt esp32cam_nannycam
uses: flipperdevices/[email protected]
id: build-app-esp32cam_nannycam
with:
sdk-channel: release
app-dir: ./flipper_companion_apps/applications/external/esp32cam_nannycam/
- name: Upload app artifacts esp32cam_nannycam
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}-${{ steps.build-app-esp32cam_nannycam.outputs.suffix }}
path: ${{ steps.build-app-esp32cam_nannycam.outputs.fap-artifacts }}
# build esp32cam_qrcode
- name: Build with ufbt esp32cam_qrcode
uses: flipperdevices/[email protected]
id: build-app-esp32cam_qrcode
with:
sdk-channel: release
app-dir: ./flipper_companion_apps/applications/external/esp32cam_qrcode/
- name: Upload app artifacts esp32cam_qrcode
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}-${{ steps.build-app-esp32cam_qrcode.outputs.suffix }}
path: ${{ steps.build-app-esp32cam_qrcode.outputs.fap-artifacts }}
# release
- name: Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
prerelease: true
files: |
${{ steps.build-app-esp32cam_camera.outputs.fap-artifacts }}
${{ steps.build-app-esp32cam_marauder_companion.outputs.fap-artifacts }}
${{ steps.build-app-esp32cam_morseflasher.outputs.fap-artifacts }}
${{ steps.build-app-esp32cam_motion_detection.outputs.fap-artifacts }}
${{ steps.build-app-esp32cam_nannycam.outputs.fap-artifacts }}
${{ steps.build-app-esp32cam_qrcode.outputs.fap-artifacts }}