aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-11-28 06:46:41 -0800
committerKhem Raj <raj.khem@gmail.com>2021-06-22 21:13:31 -0700
commitd83e5e08d7a998f50e844195cd9a8070a733c2df (patch)
tree7d6bf3fe0eec27244f25b982a36d3b4b806eb2c9
parent3bd878ef665a91d33e764ccc808b8cb31ec2354b (diff)
downloadmeta-openembedded-contrib-yoe/mut.tar.gz
meta-openembedded-contrib-yoe/mut.tar.bz2
meta-openembedded-contrib-yoe/mut.zip
XXX: Add Github actions CI supportyoe/mut
Add drone build Badge Add yoe.yml for Github actions CI support Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--.github/workflows/yoe.yml72
-rw-r--r--README.md (renamed from README)2
2 files changed, 74 insertions, 0 deletions
diff --git a/.github/workflows/yoe.yml b/.github/workflows/yoe.yml
new file mode 100644
index 0000000000..e811942881
--- /dev/null
+++ b/.github/workflows/yoe.yml
@@ -0,0 +1,72 @@
+name: Yoe Distro CI
+
+on:
+ # Trigger the workflow on push or pull request,
+ # but only for the master branch
+ push:
+ branches:
+ - yoe/mut
+ pull_request:
+ branches:
+ - master
+jobs:
+ build:
+ name: Yoe Build
+ runs-on: [self-hosted, Linux]
+ timeout-minutes: 720
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ submodules: recursive
+ - name: checkout yoe
+ run: |
+ git clone --recurse-submodules -j8 -b master git://github.com/YoeDistro/yoe-distro.git yoe
+ cd yoe
+ git checkout master
+ git pull
+ git submodule update --recursive --init
+ rm -rf sources/meta-openembedded
+ rsync -av --progress --exclude="yoe" `pwd`/../ sources/meta-openembedded/
+ - name: Setup
+ run: |
+ cd yoe
+ export DOCKER_REPO=none
+ export LANG=en_US.UTF-8
+ export SSTATE_CACHE_DIR=/scratch/sstate-cache
+ echo export DOCKER_REPO=none > local.sh
+ echo export LANG=en_US.UTF-8 >> local.sh
+ echo export SSTATE_CACHE_DIR=/scratch/sstate-cache >> local.sh
+ cp conf/local.conf.sample conf/local.conf
+ echo SSTATE_DIR = \"$SSTATE_CACHE_DIR\" >> conf/local.conf
+ echo IMAGE_CLASSES += \"testimage testsdk\" >> conf/local.conf
+ echo INHERIT += \"report-error rm_work\" >> conf/local.conf
+ echo ERR_REPORT_SERVER = \"errors.yoctoproject.org\" >> conf/local.conf
+ echo ERR_REPORT_PORT = \"80\" >> conf/local.conf
+ echo ERR_REPORT_USERNAME = \"Drone Autobuilder\" >> conf/local.conf
+ echo ERR_REPORT_EMAIL = \"info@yoedistro.org\" >> conf/local.conf
+ echo TOOLCHAIN = \"clang\" >> conf/local.conf
+ echo BB_NUMBER_THREADS = \"16\" >> conf/local.conf
+ echo PARALLEL_MAKE = \"-j 32\" >> conf/local.conf
+ echo XZ_DEFAULTS = \"--threads=8\" >> conf/local.conf
+ /bin/bash -c "sed -i -e 's/PACKAGE_FEED_URI.*$//' conf/site.conf"
+ /bin/bash -c "sed -i -e 's/SDK_UPDATE_URL.*$//' conf/site.conf"
+ - name: Build Image
+ run: |
+ cd yoe
+ /bin/bash -c ". ./qemuarm64-envsetup.sh && bitbake yoe-qt5-image"
+ - name: Test Image
+ run: |
+ cd yoe
+ export DISPLAY=":0"
+ echo TESTIMAGE_AUTO_qemuall = \"1\" >> conf/local.conf
+ /bin/bash -c ". ./qemuarm64-envsetup.sh && bitbake yoe-sdk-image"
+ - name: Prepare results
+ run: |
+ cd yoe
+ /bin/bash -c ". ./qemuarm64-envsetup.sh && resulttool report build/tmp/log/oeqa"
+ - name: Clean shared state
+ run: |
+ cd yoe
+ /bin/bash -c ". ./qemuarm64-envsetup.sh && ./sources/openembedded-core/scripts/sstate-cache-management.sh -d -y"
diff --git a/README b/README.md
index 7318f09cdb..c6cfc1f1c7 100644
--- a/README
+++ b/README.md
@@ -1,3 +1,5 @@
+[![Yoe Distro CI](https://github.com/YoeDistro/meta-openembedded/workflows/Yoe%20Distro%20CI/badge.svg?branch=yoe%2Fmut)](https://github.com/YoeDistro/meta-openembedded/actions/workflows/yoe.yml?query=workflow%3AYoe+branch%3Ayoe%2Fmut)
+
Collection of layers for the OE-core universe
Main layer maintainer: Khem Raj <raj.khem@gmail.com>