-
Notifications
You must be signed in to change notification settings - Fork 30
268 lines (244 loc) · 9.13 KB
/
Copy pathci.yml
File metadata and controls
268 lines (244 loc) · 9.13 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
name: ci
on:
push:
branches: [master, main]
pull_request:
workflow_dispatch:
# Daily run picks up oe-core / bitbake master drift even when no
# change to this repo has fired CI.
schedule:
- cron: '37 5 * * *'
# Cancel superseded runs for the same ref to save CI minutes.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
parse:
name: parse (${{ matrix.poky_branch }})
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
# poky-the-distro covers up to walnascar; whinlatter+ no longer
# publish a poky combo repo, so newer-release CI would use
# openembedded-core directly.
poky_branch: [kirkstone, scarthgap, styhead, walnascar]
steps:
- name: Checkout meta-rtlwifi
uses: actions/checkout@v4
with:
path: meta-rtlwifi
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc \
/opt/hostedtoolcache/CodeQL /usr/local/share/boost \
"$AGENT_TOOLSDIRECTORY"
df -h
- name: Cache poky checkout
uses: actions/cache@v4
with:
path: poky
key: poky-${{ matrix.poky_branch }}-${{ hashFiles('meta-rtlwifi/conf/layer.conf') }}
restore-keys: |
poky-${{ matrix.poky_branch }}-
- name: Clone poky
run: |
if [ ! -d poky/.git ]; then
git clone --depth 1 --branch ${{ matrix.poky_branch }} \
https://git.yoctoproject.org/poky poky
else
git -C poky fetch --depth 1 origin ${{ matrix.poky_branch }}
git -C poky checkout -B ${{ matrix.poky_branch }} origin/${{ matrix.poky_branch }}
fi
- name: Install Yocto host dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
gawk wget git diffstat unzip texinfo gcc build-essential chrpath \
socat cpio python3 python3-pip python3-pexpect xz-utils debianutils \
iputils-ping python3-git python3-jinja2 python3-subunit zstd liblz4-tool \
file locales libacl1
sudo locale-gen en_US.UTF-8
- name: Parse the layer
env:
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
run: |
set -eo pipefail
cd poky
source oe-init-build-env build
cat >> conf/local.conf <<'EOF'
MACHINE = "qemux86-64"
BB_NUMBER_THREADS = "2"
PARALLEL_MAKE = "-j 2"
INHERIT += "rm_work"
CONF_VERSION = "2"
EOF
bitbake-layers add-layer "$GITHUB_WORKSPACE/meta-rtlwifi"
bitbake-layers show-layers
bitbake -p
- name: Fetch all recipes
env:
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
run: |
set -eo pipefail
cd poky
source oe-init-build-env build
bitbake -c fetch -k \
rtl8192eu rtl8723bu rtl8723du rtl8812au rtl8814au \
rtl8821au rtl8821cu rtl88x2bu
parse-oe-core:
# Whinlatter and wrynose dropped the combined poky repository, so
# to test them we have to clone openembedded-core + bitbake
# separately. Kept as a separate job from `parse` so the existing
# poky-based path stays untouched.
name: parse (${{ matrix.release }})
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
# bitbake versions itself independently of Yocto release
# names, so each entry maps the oe-core branch to the
# bitbake-the-tool branch that release expects.
- release: whinlatter
bitbake: '2.16'
- release: wrynose
bitbake: '2.18'
steps:
- name: Checkout meta-rtlwifi
uses: actions/checkout@v4
with:
path: meta-rtlwifi
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc \
/opt/hostedtoolcache/CodeQL /usr/local/share/boost \
"$AGENT_TOOLSDIRECTORY"
- name: Clone oe-core (${{ matrix.release }})
run: |
git clone --depth 1 --branch ${{ matrix.release }} \
https://git.openembedded.org/openembedded-core oe-core
- name: Clone bitbake (${{ matrix.bitbake }})
run: |
git clone --depth 1 --branch ${{ matrix.bitbake }} \
https://git.openembedded.org/bitbake oe-core/bitbake
- name: Install Yocto host dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
gawk wget git diffstat unzip texinfo gcc build-essential chrpath \
socat cpio python3 python3-pip python3-pexpect xz-utils debianutils \
iputils-ping python3-git python3-jinja2 python3-subunit zstd liblz4-tool \
file locales libacl1
sudo locale-gen en_US.UTF-8
- name: Parse the layer
env:
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
run: |
set -eo pipefail
cd oe-core
# oe-core ships oe-init-build-env at its top level; sourcing
# it without poky's meta-yocto* layers means we only have
# meta-core, which is what we want for layer-parse smoke.
source oe-init-build-env build
cat >> conf/local.conf <<'EOF'
MACHINE = "qemux86-64"
BB_NUMBER_THREADS = "2"
PARALLEL_MAKE = "-j 2"
INHERIT += "rm_work"
CONF_VERSION = "2"
EOF
bitbake-layers add-layer "$GITHUB_WORKSPACE/meta-rtlwifi"
bitbake-layers show-layers
bitbake -p
- name: Fetch all recipes
env:
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
run: |
set -eo pipefail
cd oe-core
source oe-init-build-env build
bitbake -c fetch -k \
rtl8192eu rtl8723bu rtl8723du rtl8812au rtl8814au \
rtl8821au rtl8821cu rtl88x2bu
parse-oe-core-master:
# Early-warning signal: parse + fetch against oe-core master and
# bitbake master. Catches API drift (bitbake CLI, class renames,
# new QA checks) before the next Yocto release lands. Marked
# continue-on-error so a hot upstream breakage doesn't block
# merges to this repo -- the value is the alert, not the gate.
name: parse (oe-core master) [informational]
runs-on: ubuntu-22.04
continue-on-error: true
steps:
- name: Checkout meta-rtlwifi
uses: actions/checkout@v4
with:
path: meta-rtlwifi
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc \
/opt/hostedtoolcache/CodeQL /usr/local/share/boost \
"$AGENT_TOOLSDIRECTORY"
- name: Clone oe-core (master)
run: |
git clone --depth 1 --branch master \
https://git.openembedded.org/openembedded-core oe-core
- name: Clone bitbake (master)
run: |
git clone --depth 1 --branch master \
https://git.openembedded.org/bitbake oe-core/bitbake
- name: Install Yocto host dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
gawk wget git diffstat unzip texinfo gcc build-essential chrpath \
socat cpio python3 python3-pip python3-pexpect xz-utils debianutils \
iputils-ping python3-git python3-jinja2 python3-subunit zstd liblz4-tool \
file locales libacl1
sudo locale-gen en_US.UTF-8
- name: Parse the layer
env:
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
run: |
set -eo pipefail
cd oe-core
source oe-init-build-env build
cat >> conf/local.conf <<'EOF'
MACHINE = "qemux86-64"
BB_NUMBER_THREADS = "2"
PARALLEL_MAKE = "-j 2"
INHERIT += "rm_work"
CONF_VERSION = "2"
EOF
bitbake-layers add-layer "$GITHUB_WORKSPACE/meta-rtlwifi"
bitbake-layers show-layers
bitbake -p
- name: Fetch all recipes
env:
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
run: |
set -eo pipefail
cd oe-core
source oe-init-build-env build
bitbake -c fetch -k \
rtl8192eu rtl8723bu rtl8723du rtl8812au rtl8814au \
rtl8821au rtl8821cu rtl88x2bu
# yocto-check-layer is intentionally not run here:
#
# The scarthgap/styhead/walnascar copies of checklayer decorate
# test_patches_upstream_status with @unittest.expectedFailure. With
# the local patches now correctly tagged (required by walnascar's
# do_patch QA), the test passes and unittest re-counts that as an
# "unexpected success" — i.e. a CI failure.
#
# The decorator is removed in whinlatter+, so once we have a CI path
# building against oe-core whinlatter directly (poky is no longer a
# combined repo from whinlatter onwards), we can re-add a
# yocto-check-layer job pointed at that.