Repository navigation
143 lines (136 loc) · 3.91 KB
/
Copy pathbuild_fw.yml
File metadata and controls
143 lines (136 loc) · 3.91 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
---
name: Run tests and package firmware
on:
push:
branches:
- 'main'
- '[0-9]+.[0-9]+'
tags:
- v*
paths: &trigger-paths
- '.github/workflows/build_fw.yml'
- 'cmake/**'
- 'radio/**'
- 'tools/build-gh.sh'
- '.gitmodules'
- 'CMakeLists.txt'
pull_request:
paths: *trigger-paths
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
timeout-minutes: 30
if: |
github.event_name != 'pull_request' ||
!contains(github.event.pull_request.labels.*.name, 'ci: skip-fw')
strategy:
matrix:
# each target uses one of the 20 runners available, keep grouped to manage concurrency
target:
- el18;nv14 # Flysky
- nb4p;pa01 # Flysky
- pl18;pl18ev # Flysky
- st16 # Flysky
- x9dp2019;x9e # FrSky
- x10 # FrSky
- x12s # FrSky
- v12;v15 # HelloRadioSky
- c14 # iFlight
- t12max;t14 # Jumper
- t15;t15pro;t15h7 # Jumper
- t16;t18 # Jumper
- t20;t20v2 # Jumper
- t22 # Jumper
- gx12;mt12 # RadioMaster
- tx15 # RadioMaster
- tx16s;tx16smk3 # RadioMaster
- h17 # Senduwing
- t18h7 # Jumper
container:
image: ghcr.io/edgetx/edgetx-dev:latest
volumes:
- ${{ github.workspace }}:/src
steps:
- name: Check out the repo
uses: actions/checkout@v7
with:
submodules: recursive
- name: Test ${{ matrix.target }}
env:
FLAVOR: ${{ matrix.target }}
CMAKE_BUILD_PARALLEL_LEVEL: 4
run: |
echo "Running commit tests"
./tools/commit-tests.sh
build:
name: Run builds
needs: test
runs-on: ubuntu-latest
if: |
github.event_name != 'pull_request' ||
!contains(github.event.pull_request.labels.*.name, 'ci: skip-fw')
strategy:
matrix:
# each target uses one of the 20 runners available, keep grouped to manage concurrency
target:
- f16 # Fatfish
- el18;nv14 # Flysky
- nb4p;pa01;st16 # Flysky
- pl18;pl18ev;pl18u # Flysky
- x10;x10express;x12s # FrSky
- x7access;x9dp2019;x9e # FrSky
- v12;v14;v15 # HelloRadioSky
- v14lcd;v16 # HelloRadioSky
- c14;commando8 # iFlight
- bumblebee;t12max;t14 # Jumper
- t15;t15h7;t15pro;t16 # Jumper
- t18;t20;t20v2 # Jumper
- t22;tpros;tprov2 # Jumper
- boxer;gx12;gx15 # RadioMaster
- mt12;pocket;tx12mk2 # RadioMaster
- tx15;tx16s;tx16smk3 # RadioMaster
- zorro # RadioMaster
- h17 # Senduwing
- t18h7 # Jumper
container:
image: ghcr.io/edgetx/edgetx-dev:latest
volumes:
- ${{ github.workspace }}:/src
steps:
- name: Check out the repo
uses: actions/checkout@v7
with:
submodules: recursive
- name: Build ${{ matrix.target }}
env:
FLAVOR: ${{ matrix.target }}
CMAKE_BUILD_PARALLEL_LEVEL: 4
run: |
echo "Running firmware build"
./tools/build-gh.sh
- name: Upload ${{ matrix.target }}
uses: actions/upload-artifact@v7
with:
name: firmware-${{ matrix.target }}
path: |
fw.json
LICENSE
*.bin
*.uf2
retention-days: 15
if-no-files-found: error
package:
name: Package firmwares
needs: build
runs-on: ubuntu-latest
steps:
- name: Compose release filename
run: echo "artifact_name=edgetx-firmware-${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Merge firmware artifact packages
uses: actions/upload-artifact/merge@v7
with:
name: "${{ env.artifact_name }}"
pattern: firmware-*
delete-merged: true
retention-days: 15