-
-
Notifications
You must be signed in to change notification settings - Fork 7
49 lines (43 loc) · 1.3 KB
/
pull-request-release.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
name: "Release PR - Lint & Build Test"
on:
pull_request:
branches:
- main
jobs:
ufbt-test-build-action:
runs-on: ubuntu-latest
# The following builds must pass before release is accepted:
strategy:
matrix:
include:
- name: "dev"
sdk-channel: dev
- name: "rc"
sdk-channel: rc
- name: "release"
sdk-channel: release
name: "PR Build: ${{ matrix.name }}"
steps:
- name: "Checkout"
uses: actions/checkout@v3
with:
submodules: recursive
# Flipper Zero ufbt action
# https://github.com/flipperdevices/flipperzero-ufbt-action
- name: "Build"
uses: flipperdevices/[email protected]
id: build-app
with:
app-dir: ./fap
sdk-channel: ${{ matrix.sdk-channel }}
- name: "Lint"
uses: flipperdevices/[email protected]
with:
app-dir: ./fap
skip-setup: true
task: lint
- name: "Create FAP Download Pre Release (${{ matrix.name }})"
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}-${{ matrix.name }}-${{ steps.build-app.outputs.suffix }}.zip
path: ${{ steps.build-app.outputs.fap-artifacts }}