forked from meta-flutter/meta-flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
139 lines (125 loc) · 5.7 KB
/
kirkstone-rpi-zero2w-64.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
name: kirkstone-rpi-zero2w-64
on:
pull_request:
types: [ opened, synchronize, reopened, closed ]
release:
types: [ published, created, edited ]
workflow_dispatch:
schedule:
# daily
- cron: '0 0 * * *'
jobs:
weston:
env:
YOCTO_BRANCH: "kirkstone"
MACHINE: raspberrypi0-2w-64
runs-on: [self-hosted, linux]
container:
image: ghcr.io/meta-flutter/ubuntu-20-dev:main
options:
--user 1001
--storage-opt overlay.mount_program=/usr/bin/fuse-overlayfs
--storage-opt overlay.mountopt=nodev,metacopy=on,noxattrs=1
-v /mnt/raid10/github-ci/download:/home/dev/dl:Z
-v /mnt/raid10/github-ci/sstate/yocto/kirkstone/zero2w-drm/latest:/home/dev/sstate:Z
-v /mnt/raid10/github-ci/artifacts/zero2w/drm:/home/dev/artifacts:Z
steps:
- name: Display UID Info
run: |
whoami
id -u
- name: Set Ownership
run: |
chown -R dev:dev $HOME .
- uses: actions/checkout@v3
with:
path: ''
- name: Fetch poky
run: |
[ -d ../zero2w-drm-kirkstone-latest ] || mkdir -p ../zero2w-drm-kirkstone-latest
cd ../zero2w-drm-kirkstone-latest
rm -rf sources || true
git config --global user.name "Joel Winarske"
git config --global user.email joel@[email protected]
/home/dev/bin/repo init -u https://github.com/jwinarske/manifests.git -m rpi64.xml -b $YOCTO_BRANCH
/home/dev/bin/repo sync --force-sync --no-clone-bundle -j `grep -c ^processor /proc/cpuinfo` &
wait
- name: Configure build
shell: bash
working-directory: ../zero2w-drm-kirkstone-latest
run: |
rm -rf ${{ env.MACHINE }}/conf || true
. ./setup-environment ${{ env.MACHINE }}
echo '***************************************'
echo 'DL_DIR = "/home/dev/dl"' >> ./conf/local.conf
echo 'SSTATE_DIR = "/home/dev/sstate"' >> ./conf/local.conf
echo 'SSTATE_MIRRORS = "file://.* file:///home/dev/sstate/PATH"' >> ./conf/local.conf
echo 'ENABLE_BINARY_LOCALE_GENERATION = "1"' >> ./conf/local.conf
echo 'GLIBC_GENERATE_LOCALES:append = " en_US.UTF-8 es_US.UTF-8 en_GB.UTF-8"' >> ./conf/local.conf
echo 'IMAGE_LINGUAS:append = " en-us en-gb es-us"' >> ./conf/local.conf
echo 'DEFAULT_TIMEZONE = "America/Los_Angeles"' >> ./conf/local.conf
echo 'IMAGE_INSTALL:append = "\
dart-sdk \
default-language-en-us-utf8 \
tzdata-americas \
tzdata-core \
ivi-homescreen \
flutter-auto \
packagegroup-flutter-test-apps \
gstreamer1.0 \
gstreamer1.0-libav \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly \
ffmpeg \
"' >> ./conf/local.conf
echo 'LICENSE_FLAGS_ACCEPTED += " commercial"' >> ./conf/local.conf
echo 'PACKAGECONFIG:append:pn-ffmpeg = " openssl"' >> ./conf/local.conf
echo 'PACKAGECONFIG:append:pn-weston = " remoting"' >> ./conf/local.conf
echo 'PACKAGECONFIG:append:pn-flutter-auto = " gstreamer"' >> conf/local.conf
echo 'PACKAGECONFIG:append:pn-flutter-engine = " profile debug"' >> conf/local.conf
echo '********** ./conf/local.conf **********'
cat ./conf/local.conf
echo '***************************************'
bitbake-layers show-layers
bitbake-layers remove-layer meta-flutter
bitbake-layers add-layer ../../meta-flutter
bitbake-layers show-layers
echo '***************************************'
bitbake -e virtual/kernel | grep "^PV"
bitbake -e virtual/kernel | grep "^PN"
echo '***************************************'
bitbake -e rpi-image-flutter-wayland | grep "^DISTRO_FEATURES"
bitbake -e rpi-image-flutter-wayland | grep "^IMAGE_FEATURES"
echo '***************************************'
bitbake -e > bb.environment
bitbake -c do_cleansstate flutter-engine
bitbake -c do_cleansstate flutter-gallery
bitbake -c do_cleansstate flutter-test-plugins
bitbake -c do_cleansstate flutter-test-secure-storage
bitbake -c do_cleansstate flutter-test-texture-egl
bitbake -c do_cleansstate flutter-test-video-player
bitbake -c do_cleansstate flutter-test-localization
bitbake -c do_cleansstate flutter-test-membrane
bitbake -c do_cleansstate membrane-example
bitbake -c do_cleansstate membrane-example-native
bitbake -c do_cleansstate flutter-test-membrane
bitbake -c do_cleansstate flutter-rust-bridge-example
bitbake -c do_cleansstate flutter-test-frb
- name: Build rpi-image-weston-flutter
shell: bash
working-directory: ../zero2w-drm-kirkstone-latest
run: |
. ./sources/poky/oe-init-build-env ${{ env.MACHINE }}
bitbake rpi-image-flutter-wayland
rm -rf /home/dev/artifacts/*
cp bb.environment /home/dev/artifacts
cp tmp/deploy/images/raspberrypi0-2w-64/rpi-image-flutter-wayland-raspberrypi0-2w-64.wic.bmap /home/dev/artifacts
cp tmp/deploy/images/raspberrypi0-2w-64/rpi-image-flutter-wayland-raspberrypi0-2w-64.wic.bz2 /home/dev/artifacts
- name: Publish SD card image artifact
uses: actions/upload-artifact@v3
with:
name: raspberrypi0-2w-64-weston-flutter-sdimage
path: |
/home/dev/artifacts/*