summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/yoe.yml79
1 files changed, 79 insertions, 0 deletions
diff --git a/.github/workflows/yoe.yml b/.github/workflows/yoe.yml
new file mode 100644
index 0000000..ca2885b
--- /dev/null
+++ b/.github/workflows/yoe.yml
@@ -0,0 +1,79 @@
1name: Yoe Distro CI
2
3on:
4 # Trigger the workflow on push or pull request,
5 # but only for the master branch
6 push:
7 branches:
8 - master
9 pull_request:
10 branches:
11 - master
12jobs:
13 build:
14 name: Yoe Build
15 runs-on: [self-hosted, Linux]
16 timeout-minutes: 720
17 steps:
18 - name: Checkout
19 uses: actions/checkout@v2
20 with:
21 fetch-depth: 0
22 submodules: recursive
23 - name: checkout yoe
24 run: |
25 git clone --recurse-submodules -j8 -b master git://github.com/YoeDistro/yoe-distro.git yoe
26 cd yoe
27 git checkout master
28 git pull
29 git submodule update --recursive --init
30 rm -rf sources/meta-clang
31 rsync -av --progress --exclude="yoe" `pwd`/../ sources/meta-clang/
32 - name: Setup
33 run: |
34 cd yoe
35 export DOCKER_REPO=none
36 export LANG=en_US.UTF-8
37 export SSTATE_CACHE_DIR=/scratch/sstate-cache
38 echo export DOCKER_REPO=none > local.sh
39 echo export LANG=en_US.UTF-8 >> local.sh
40 echo export SSTATE_CACHE_DIR=/scratch/sstate-cache >> local.sh
41 cp conf/local.conf.sample conf/local.conf
42 echo SSTATE_DIR = \"$SSTATE_CACHE_DIR\" >> conf/local.conf
43 echo IMAGE_CLASSES += \"testimage testsdk\" >> conf/local.conf
44 echo INHERIT += \"report-error rm_work\" >> conf/local.conf
45 echo ERR_REPORT_SERVER = \"errors.yoctoproject.org\" >> conf/local.conf
46 echo ERR_REPORT_PORT = \"80\" >> conf/local.conf
47 echo ERR_REPORT_USERNAME = \"Drone Autobuilder\" >> conf/local.conf
48 echo ERR_REPORT_EMAIL = \"info@yoedistro.org\" >> conf/local.conf
49 echo TOOLCHAIN = \"clang\" >> conf/local.conf
50 echo BB_NUMBER_THREADS = \"16\" >> conf/local.conf
51 echo PARALLEL_MAKE = \"-j 32\" >> conf/local.conf
52 echo CLANGSDK = \"1\" >> conf/local.conf
53 echo IMAGE_INSTALL_append = \" clang \" >> conf/local.conf
54 echo XZ_DEFAULTS = \"--threads=8\" >> conf/local.conf
55 echo SDKMACHINE = \"aarch64\" >> conf/local.conf
56 /bin/bash -c "sed -i -e 's/PACKAGE_FEED_URI.*$//' conf/site.conf"
57 /bin/bash -c "sed -i -e 's/SDK_UPDATE_URL.*$//' conf/site.conf"
58 - name: Build Image
59 run: |
60 cd yoe
61 /bin/bash -c ". ./qemuarm64-envsetup.sh && bitbake yoe-qt5-image yoe-sdk-image yoe-debug-image"
62 - name: Build SDK
63 run: |
64 cd yoe
65 /bin/bash -c ". ./qemuarm64-envsetup.sh && bitbake yoe-debug-image -cpopulate_sdk_ext"
66 - name: Test Image
67 run: |
68 cd yoe
69 export DISPLAY=":0"
70 echo TESTIMAGE_AUTO_qemuall = \"1\" >> conf/local.conf
71 /bin/bash -c ". ./qemuarm64-envsetup.sh && bitbake yoe-sdk-image"
72 - name: Prepare results
73 run: |
74 cd yoe
75 /bin/bash -c ". ./qemuarm64-envsetup.sh && resulttool report build/tmp/log/oeqa"
76 - name: Clean shared state
77 run: |
78 cd yoe
79 /bin/bash -c ". ./qemuarm64-envsetup.sh && ./sources/openembedded-core/scripts/sstate-cache-management.sh -d -y"