From 10847044dc46d9c769ba91a59b7d9737ba9117df Mon Sep 17 00:00:00 2001 From: Jose Quaresma Date: Fri, 11 Oct 2024 12:41:40 +0100 Subject: [PATCH 1/2] ci: build-yocto: add CACHE_DIR env This variable will point to the persistent cache storage. Signed-off-by: Jose Quaresma --- .github/workflows/build-yocto.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-yocto.yml b/.github/workflows/build-yocto.yml index 4f330c26..928c004f 100644 --- a/.github/workflows/build-yocto.yml +++ b/.github/workflows/build-yocto.yml @@ -63,8 +63,9 @@ jobs: - name: Kas build run: | - export DL_DIR=/srv/gh-runners/quic-yocto/downloads - export SSTATE_DIR=/srv/gh-runners/quic-yocto/sstate-cache + export CACHE_DIR=/srv/gh-runners/quic-yocto + export DL_DIR=${CACHE_DIR}/downloads + export SSTATE_DIR=${CACHE_DIR}/sstate-cache mkdir -p $DL_DIR mkdir -p $SSTATE_DIR mkdir build From 6690562b84cd72d25d31ed8bff751d8d04d6908c Mon Sep 17 00:00:00 2001 From: Jose Quaresma Date: Fri, 11 Oct 2024 12:42:33 +0100 Subject: [PATCH 2/2] ci: build-yocto: set the KAS_WORK_DIR Set the KAS_WORK_DIR to a folder outside the repo. Remove the build dir as it will be created by the oe-init-build-env script and also the DL_DIR and SSTATE_DIR will be crated by bitbake if needed. Signed-off-by: Jose Quaresma --- .github/workflows/build-yocto.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-yocto.yml b/.github/workflows/build-yocto.yml index 928c004f..eaa99d3c 100644 --- a/.github/workflows/build-yocto.yml +++ b/.github/workflows/build-yocto.yml @@ -66,8 +66,6 @@ jobs: export CACHE_DIR=/srv/gh-runners/quic-yocto export DL_DIR=${CACHE_DIR}/downloads export SSTATE_DIR=${CACHE_DIR}/sstate-cache - mkdir -p $DL_DIR - mkdir -p $SSTATE_DIR - mkdir build - cd build - kas build ../ci/mirror.yml:../ci/${{ matrix.machine }}.yml + export KAS_WORK_DIR=$PWD/../kas + mkdir $KAS_WORK_DIR + kas build ci/mirror.yml:ci/${{ matrix.machine }}.yml