From 526b0ec6eb5acca1674287c4371b64ab95392400 Mon Sep 17 00:00:00 2001 From: dany Date: Sat, 22 Mar 2025 12:18:42 +0100 Subject: [PATCH] fix(ci): use external locations for caches, tmp and downloads --- .gitea/workflows/ci.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index d0b97be..f3b7ccb 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -14,13 +14,23 @@ jobs: uses: actions/checkout@v3 - name: Update submodule run: git submodule update --init - - name: Building image and sdk + - name: Init env run: | - mkdir -p /build/conf - cp -v build/conf/*.conf /build/conf/ - ln -sf /build ci-build - cd poky && source oe-init-build-env ../ci-build + mkdir -p /build/cache + mkdir -p /build/downloads + mkdir -p /build/sstate-cache + mkdir -p /build/tmp + ln -sf /build/cache build/cache + ln -sf /build/downloads build/downloads + ln -sf /build/sstate-cache build/sstate-cache + ln -sf /build/tmp build/tmp + - name: build image for Orpi + run: | + cd poky && source oe-init-build-env ../build printenv cat conf/*.conf bitbake core-image-base + - name: build sdk for Orpi + run: | + cd poky && source oe-init-build-env ../build bitbake core-image-base -c populate_sdk