forked from meta-flutter/meta-flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
240 lines (214 loc) · 8.88 KB
/
qemuarm64-linux-dummy.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
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
name: scarthgap-qemuarm64-linux-dummy
on:
pull_request:
types: [ opened, synchronize, reopened, closed ]
release:
types: [ published, created, edited ]
jobs:
qemuarm64-linux-dummy:
env:
MACHINE: qemuarm64
YOCTO_BRANCH: scarthgap
runs-on: [self-hosted, linux]
container:
image: ghcr.io/meta-flutter/ubuntu-20-dev:main
options:
--read-only
--log-driver=none
--user 1001:1001
--userns keep-id:uid=1001,gid=1001
--security-opt label=disable
--pids-limit=-1
--storage-opt overlay.mount_program=/usr/bin/fuse-overlayfs
--storage-opt overlay.mountopt=nodev,metacopy=on,noxattrs=1
-v /home/runner/.ssh:/home/dev/.ssh:ro
-v /mnt/raid10/github-ci/download:/home/dev/dl:Z
-v /mnt/raid10/github-ci/sstate/yocto/scarthgap-linux-dummy:/home/dev/sstate:Z
steps:
- uses: actions/checkout@v4
with:
path: ''
- name: Fetch poky
run: |
[ -d ../scarthgap-linux-dummy ] || mkdir -p ../scarthgap-linux-dummy
cd ../scarthgap-linux-dummy
pwd
ls -la
rm -rf poky meta-openembedded meta-clang meta-drm meta-vulkan
git clone -b ${{ env.YOCTO_BRANCH }} --single-branch git://git.yoctoproject.org/poky &
git clone -b ${{ env.YOCTO_BRANCH }} --single-branch git://git.openembedded.org/meta-openembedded &
git clone -b ${{ env.YOCTO_BRANCH }} --single-branch https://github.com/kraj/meta-clang.git &
git clone -b ${{ env.YOCTO_BRANCH }} --single-branch https://github.com/jwinarske/meta-drm.git &
git clone -b ${{ env.YOCTO_BRANCH }} --single-branch https://github.com/jwinarske/meta-vulkan.git &
wait
- name: Configure build
shell: bash
working-directory: ../scarthgap-linux-dummy
run: |
rm -rf build/conf
. ./poky/oe-init-build-env
echo '***************************************'
echo 'INHERIT += "rm_work"' >> ./conf/local.conf
echo 'INHIBIT_PACKAGE_DEBUG_SPLIT = "1"' >> ./conf/local.conf
echo '***************************************'
sed -i '/MACHINE ??=/d' ./conf/local.conf
echo "MACHINE ??= \"${{ env.MACHINE }}\"" >> ./conf/local.conf
echo '***************************************'
echo 'DL_DIR = "/home/dev/dl"' >> ./conf/local.conf
echo 'SSTATE_DIR = "/home/dev/sstate"' >> ./conf/local.conf
echo 'BB_SIGNATURE_HANDLER = "OEEquivHash"' >> ./conf/local.conf
echo 'BB_HASHSERVE = "auto"' >> ./conf/local.conf
echo 'SSTATE_MIRRORS ?= "file://.* https://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH"' >> ./conf/local.conf
echo 'INIT_MANAGER = "systemd"' >> ./conf/local.conf
echo '***************************************'
echo 'DISTRO_FEATURES:remove = "sysvinit ptest"' >> ./conf/local.conf
echo 'DISTRO_FEATURES:append = " systemd x11 wayland opengl polkit"' >> ./conf/local.conf
echo 'DISTRO_FEATURES_BACKFILL_CONSIDERED = ""' >> ./conf/local.conf
echo 'PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"' >> ./conf/local.conf
echo 'LICENSE_FLAGS_ACCEPTED += "commercial"' >> ./conf/local.conf
echo 'PACKAGECONFIG:append:pn-ffmpeg = " openssl"' >> ./conf/local.conf
echo 'PACKAGECONFIG:append:pn-flutter-auto = " filament-view"' >> ./conf/local.conf
echo 'PACKAGECONFIG:append:pn-ivi-homescreen = " filament-view"' >> ./conf/local.conf
echo '***************************************'
echo 'IMAGE_INSTALL:append = " \
gstreamer1.0 \
gstreamer1.0-libav \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly \
ffmpeg \
flatpak \
"' >> ./conf/local.conf
echo '********** ./conf/local.conf **********'
cat ./conf/local.conf
echo '***************************************'
bitbake-layers show-layers
bitbake-layers add-layer \
../meta-clang \
../meta-openembedded/meta-filesystems \
../meta-openembedded/meta-gnome \
../meta-openembedded/meta-multimedia \
../meta-openembedded/meta-networking \
../meta-openembedded/meta-oe \
../meta-openembedded/meta-python \
../meta-clang \
../meta-drm \
../meta-vulkan \
../../meta-flutter \
../../meta-flutter/meta-flutter-apps
bitbake-layers show-layers
echo '***************************************'
bitbake -e virtual/kernel | grep "^PV"
bitbake -e virtual/kernel | grep "^PN"
echo '***************************************'
bitbake -e core-image-minimal | grep "^DISTRO_FEATURES"
echo '***************************************'
bitbake -e > bb.environment
bitbake ca-certificates -c do_cleansstate
bitbake ca-certificates-native -c do_cleansstate
bitbake flutter-sdk-native -c do_cleansstate
- name: Build core-image-minimal
shell: bash
working-directory: ../scarthgap-linux-dummy
run: |
. ./poky/oe-init-build-env
bitbake core-image-minimal
- name: Build dart-sdk
shell: bash
working-directory: ../scarthgap-linux-dummy
run: |
. ./poky/oe-init-build-env
bitbake dart-sdk -c do_cleansstate
bitbake dart-sdk
- name: Build pdfium
shell: bash
working-directory: ../scarthgap-linux-dummy
run: |
. ./poky/oe-init-build-env
bitbake pdfium -c do_cleansstate
bitbake pdfium
- name: Build libwebrtc
shell: bash
working-directory: ../scarthgap-linux-dummy
run: |
. ./poky/oe-init-build-env
bitbake libwebrtc -c do_cleansstate
bitbake libwebrtc
- name: Build flutter-engine
shell: bash
working-directory: ../scarthgap-linux-dummy
run: |
. ./poky/oe-init-build-env
bitbake flutter-engine -c do_cleansstate
bitbake flutter-engine
- name: Build ivi-homescreen
shell: bash
working-directory: ../scarthgap-linux-dummy
run: |
. ./poky/oe-init-build-env
bitbake ivi-homescreen -c do_cleansstate
bitbake ivi-homescreen
- name: Build flutter-auto
shell: bash
working-directory: ../scarthgap-linux-dummy
run: |
. ./poky/oe-init-build-env
bitbake flutter-auto -c do_cleansstate
bitbake flutter-auto
- name: Build flutter-pi
shell: bash
working-directory: ../scarthgap-linux-dummy
run: |
. ./poky/oe-init-build-env
bitbake flutter-pi -c do_cleansstate
bitbake flutter-pi
- name: Build Sony flutter-drm-eglstream-backend
shell: bash
working-directory: ../scarthgap-linux-dummy
run: |
. ./poky/oe-init-build-env
bitbake flutter-drm-eglstream-backend -c do_cleansstate
bitbake flutter-drm-eglstream-backend
- name: Build Sony drm gbm backend
shell: bash
working-directory: ../scarthgap-linux-dummy
run: |
. ./poky/oe-init-build-env
bitbake flutter-drm-gbm-backend -c do_cleansstate
bitbake flutter-drm-gbm-backend
- name: Build Sony external texture plugin
shell: bash
working-directory: ../scarthgap-linux-dummy
run: |
. ./poky/oe-init-build-env
bitbake flutter-external-texture-plugin -c do_cleansstate
bitbake flutter-external-texture-plugin
- name: Build Sony video player plugin
shell: bash
working-directory: ../scarthgap-linux-dummy
run: |
. ./poky/oe-init-build-env
bitbake flutter-video-player-plugin -c do_cleansstate
bitbake flutter-video-player-plugin
- name: Build Sony Wayland Client
shell: bash
working-directory: ../scarthgap-linux-dummy
run: |
. ./poky/oe-init-build-env
bitbake flutter-wayland-client -c do_cleansstate
bitbake flutter-wayland-client
- name: Build Sony X11 Client
shell: bash
working-directory: ../scarthgap-linux-dummy
run: |
. ./poky/oe-init-build-env
bitbake flutter-x11-client -c do_cleansstate
bitbake flutter-x11-client
- name: Build flutter-samples-material-3-demo
shell: bash
working-directory: ../scarthgap-linux-dummy
run: |
. ./poky/oe-init-build-env
bitbake flutter-samples-material-3-demo -c do_cleansstate
bitbake flutter-samples-material-3-demo