-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (83 loc) · 3.1 KB
/
Validation.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
name: Validate recipes
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_call:
jobs:
Thunder:
runs-on: ubuntu-22.04
strategy:
matrix:
# machine : [raspberrypi3-64, raspberrypi4-64]
# build_type: [debug, release, production]
# yocto_version : [dunfell, kirkstone, scarthgap]
machine : [raspberrypi3-64]
build_type: [debug]
yocto_version : [dunfell, kirkstone]
name: Build ${{matrix.build_type}} on ${{matrix.yocto_version}} for ${{matrix.machine}}
steps:
# ----- Setup Yocto -----
- name: Install necessary packages
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 10
command: |
sudo gem install apt-spy2
sudo apt-spy2 fix --commit --launchpad --country=US
sudo apt-get update
sudo apt install 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
- name: Generate locale
run: |
sudo locale-gen en_US.UTF-8
- name: Get poky
uses: actions/checkout@v4
with:
github-server-url: 'https://git.yoctoproject.org'
repository: git/poky
ref: ${{matrix.yocto_version}}
path : poky
# The repo git/openembedded-core fails, falling back on github mirror
- name: Get openembedded-core
uses: actions/checkout@v4
with:
repository: openembedded/openembedded-core
ref: ${{matrix.yocto_version}}
path : openembedded-core
# the repo git/meta-openembedded fails, falling back on github mirror
- name: Get meta-openembedded
uses: actions/checkout@v4
with:
repository: openembedded/meta-openembedded
ref: ${{matrix.yocto_version}}
path : meta-openembedded
- name: Get meta-raspberrypi BSP
if: contains(${{matrix.machine}}, 'raspberrypi')
uses: actions/checkout@v4
with:
github-server-url: 'https://git.yoctoproject.org'
repository: git/meta-raspberrypi
ref: ${{matrix.yocto_version}}
path : meta-raspberrypi
- name: Get meta-thunder-framework
uses: actions/checkout@v4
with:
repository: metrological/meta-thunder-framework
path: meta-thunder-framework
- name: Validate
run: |
source poky/oe-init-build-env build-${{matrix.machine}}
bitbake-layers add-layer ../meta-openembedded/meta-oe
bitbake-layers add-layer ../meta-openembedded/meta-python
bitbake-layers add-layer ../meta-raspberrypi
bitbake-layers add-layer ../meta-thunder-framework
echo 'MACHINE = "${{matrix.machine}}"' >> ./conf/local.conf
echo 'DISTRO_FEATURES += "thunder_${{matrix.build_type}}"' >> ./conf/local.conf
bitbake core-image-thunder -n