Compare commits

...

4 Commits

Author SHA1 Message Date
Roberto Viola
1a475f8479 Update raspberry-yocto.yml 2024-10-18 17:35:30 +02:00
Roberto Viola
a0bcbe6608 Update raspberry-yocto.yml 2024-10-18 17:33:53 +02:00
Roberto Viola
a6dd74dab6 Update raspberry-yocto.yml 2024-10-18 17:32:12 +02:00
Roberto Viola
c183fa7354 Update raspberry-yocto.yml 2024-10-18 17:30:17 +02:00

52
.github/workflows/raspberry-yocto.yml vendored Normal file
View File

@@ -0,0 +1,52 @@
name: Yocto Raspberry Pi Qt Build
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y 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 libegl1-mesa libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev zstd liblz4-tool
- name: Set up Yocto
run: |
git clone -b dunfell git://git.yoctoproject.org/poky
cd poky
git clone -b dunfell git://git.openembedded.org/meta-openembedded
git clone -b dunfell git://git.yoctoproject.org/meta-raspberrypi
git clone -b dunfell git://code.qt.io/yocto/meta-qt5.git
- name: Configure build
run: |
cd poky
source oe-init-build-env build
echo 'MACHINE = "raspberrypi4"' >> conf/local.conf
echo 'DISTRO_FEATURES_append = " wayland"' >> conf/local.conf
echo 'CORE_IMAGE_EXTRA_INSTALL += "qtbase qtwayland"' >> conf/local.conf
bitbake-layers add-layer ../meta-openembedded/meta-oe
bitbake-layers add-layer ../meta-openembedded/meta-python
bitbake-layers add-layer ../meta-openembedded/meta-multimedia
bitbake-layers add-layer ../meta-raspberrypi
bitbake-layers add-layer ../meta-qt5
- name: Build image
run: |
cd poky/build
bitbake core-image-sato
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: rpi-qt-image
path: poky/build/tmp/deploy/images/raspberrypi4/*.rpi-sdimg