-
-
Notifications
You must be signed in to change notification settings - Fork 340
140 lines (133 loc) · 3.32 KB
/
actions.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
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
---
name: Run tests and package firmware
on:
push:
branches:
- 'main'
tags:
- v*
paths-ignore:
- '**.md'
- '.github/ISSUE_TEMPLATE/**'
- '.github/workflows/nightly.yml'
- '.github/workflows/linux_cpn.yml'
- '.github/workflows/macosx_cpn.yml'
- '.github/workflows/win-cpn-32.yml'
- '.github/workflows/win_cpn-64.yml'
- 'companion/**'
- '.gitpod.yml'
- '.devcontainer/**'
- 'fw.json'
pull_request:
branches:
- 'main'
paths-ignore:
- '**.md'
- '.github/ISSUE_TEMPLATE/**'
- '.github/workflows/nightly.yml'
- '.github/workflows/linux_cpn.yml'
- '.github/workflows/macosx_cpn.yml'
- '.github/workflows/win-cpn-32.yml'
- '.github/workflows/win_cpn-64.yml'
- 'companion/**'
- '.gitpod.yml'
- '.devcontainer/**'
- 'fw.json'
workflow_dispatch:
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
target:
- x9dp2019
- tx16s
- nv14
- el18
- pl18
- pl18ev
- t12
- t16
- t18
- t8
- tlite
- t20
- tx12
- x10
- x12s
- x7
- x9d
- x9dp
- x9e
- x9lite
- x9lites
- xlite
- xlites
container:
image: ghcr.io/edgetx/edgetx-dev:latest
volumes:
- ${{ github.workspace }}:/src
steps:
- name: Check out the repo
uses: actions/checkout@v3
with:
submodules: recursive
# fetch-depth: 0 # https://github.com/actions/checkout#Fetch-all-history-for-all-tags-and-branches
- name: Test ${{ matrix.target }}
env:
FLAVOR: ${{ matrix.target }}
run: |
echo "Running commit tests"
./tools/commit-tests.sh
build:
name: Run builds
needs: test
runs-on: ubuntu-latest
strategy:
matrix:
target:
- nv14;el18
- pl18;pl18ev
- t12
- t16;t18
- t8;zorro;pocket;mt12;commando8
- tlite;tpro;tprov2;lr3pro
- t20
- tx12;tx12mk2;boxer
- tx16s
- x10;x10-access
- x12s
- x7;x7-access
- x9d;x9dp;x9dp2019
- x9e;x9e-hall
- x9lite;x9lites
- xlite;xlites
container:
image: ghcr.io/edgetx/edgetx-dev:latest
volumes:
- ${{ github.workspace }}:/src
steps:
- name: Check out the repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build ${{ matrix.target }}
env:
FLAVOR: ${{ matrix.target }}
run: |
echo "Running firmware build"
./tools/build-gh.sh
- name: Compose release filename
# https://stackoverflow.com/questions/58033366/how-to-get-current-branch-within-github-actions
run: echo "artifact_name=edgetx-firmware-${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Package firmware ${{ matrix.target }}
uses: actions/upload-artifact@v3
with:
name: "${{ env.artifact_name }}"
path: |
fw.json
LICENSE
*.bin
retention-days: 15
if-no-files-found: error