Skip to content
Merged
Show file tree
Hide file tree
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
32 changes: 0 additions & 32 deletions .ci/Dockerfile

This file was deleted.

57 changes: 0 additions & 57 deletions .ci/Jenkinsfile

This file was deleted.

50 changes: 0 additions & 50 deletions .ci/yocto/Dockerfile

This file was deleted.

70 changes: 70 additions & 0 deletions .github/workflows/yocto-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Yocto Layer Validation

on:
push:
branches: [ 'conan2/*' ]
pull_request:
branches: [ 'conan2/*' ]

jobs:
validate-layer:
runs-on: ubuntu-22.04

steps:
- name: Extract Yocto release name
run: |
BRANCH_NAME=${GITHUB_REF#refs/heads/}
if [[ $BRANCH_NAME == "conan2/"* ]]; then
YOCTO_RELEASE=$(echo $BRANCH_NAME | cut -d'/' -f2)
else
YOCTO_RELEASE=$(echo $GITHUB_BASE_REF | cut -d'/' -f2)
fi
echo "YOCTO_RELEASE=$YOCTO_RELEASE" >> $GITHUB_ENV

- name: Checkout meta-conan
uses: actions/checkout@v3
with:
path: meta-conan

- name: Install dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get -qq update
sudo apt-get -qq install -y --no-install-recommends --no-install-suggests \
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-dev libsdl1.2-dev pylint xterm

- name: Clone Poky
run: |
git clone -b ${{ env.YOCTO_RELEASE }} --depth 1 git://git.yoctoproject.org/poky
cd poky
git checkout -q ${{ env.YOCTO_RELEASE }}

- name: Clone meta-openembedded
run: |
git clone -b ${{ env.YOCTO_RELEASE }} --depth 1 git://git.openembedded.org/meta-openembedded
cd meta-openembedded
git checkout -q ${{ env.YOCTO_RELEASE }}

- name: Add Conan Mosquitto example
run: |
mkdir recipes-example
echo 'inherit conan' > recipes-example/conan-mosquitto_2.0.18.bb
echo 'DESCRIPTION = "An open source MQTT broker"' >> recipes-example/conan-mosquitto_2.0.18.bb
echo 'LICENSE = "EPL-1.0"' >> recipes-example/conan-mosquitto_2.0.18.bb
echo 'CONAN_PKG = "mosquitto/2.0.18"' >> recipes-example/conan-mosquitto_2.0.18.bb

- name: Setup build environment
run: |
source poky/oe-init-build-env build

echo 'IMAGE_INSTALL:append = " conan-mosquitto"' >> ${{ github.workspace }}/build/conf/local.conf
echo 'CONAN_BUILD_POLICY = "missing"' >> ${{ github.workspace }}/build/conf/local.conf

bitbake-layers add-layer ../meta-openembedded/meta-oe
bitbake-layers add-layer ../meta-openembedded/meta-python
bitbake-layers add-layer ../meta-conan

bitbake-layers show-layers
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2023 JFrog LTD
Copyright (c) 2025 JFrog LTD



Expand Down
2 changes: 1 addition & 1 deletion classes/conan.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# GitHub Repository: https://github.com/conan-io/meta-conan
# Issues: https://github.com/conan-io/meta-conan/issues

PV = "0.2.0"
PV = "0.3.0"
LICENSE = "MIT"
DEPENDS:append = " python3-conan-native"
S = "${WORKDIR}"
Expand Down