Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/yocto-layer-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Yocto Layer Sanity Check

on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
workflow_dispatch:

jobs:
yocto-layer-check:
name: Yocto Layer Sanity Check
runs-on: ubuntu-22.04

steps:
- name: Checkout Layer Repo
uses: actions/checkout@v3

- name: Install Yocto Dependencies
run: |
sudo apt-get update
sudo apt-get install -y gawk wget git-core diffstat unzip texinfo gcc build-essential \
chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping \
python3-git python3-jinja2 libegl-mesa0 libsdl1.2-dev pylint

- name: Clone Poky and Meta-OpenEmbedded
run: |
cd ..
git clone https://git.yoctoproject.org/poky -b master
Copy link
Contributor

@quic-aditrath quic-aditrath Nov 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In git clone cmd "-b master" is not required, as it clones the default branch (master here) by default.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now poky master branch development stopped. so clone below projects.
git clone https://git.openembedded.org/bitbake
git clone https://git.yoctoproject.org/meta-yocto
git clone https://git.openembedded.org/openembedded-core

git clone https://git.openembedded.org/meta-openembedded

- name: Source Environment and Run Layer Check
run: |
cd ../poky
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cd ../openembedded-core

source oe-init-build-env build
export MACHINE=qemuarm64
yocto-check-layer ../../meta-ar --no-auto --dependency ../../meta-openembedded/meta-multimedia/ \
../../meta-openembedded/meta-python/ ../../meta-openembedded/meta-oe --no-auto-dependency
Loading