Skip to content

Commit

Permalink
build-yocto: cleanup sstate-cache
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Quaresma <[email protected]>
  • Loading branch information
quaresmajose committed Oct 16, 2024
1 parent f3f43b4 commit ef27023
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/build-yocto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ jobs:
compile:
needs: kas-lock
env:
PERSISTENT_DIR: /srv/gh-runners/quic-yocto
DL_DIR: ${PERSISTENT_DIR}/downloads
SSTATE_DIR: ${PERSISTENT_DIR}/sstate-cache
KAS_BUILD_DIR: ${GITHUB_WORKSPACE}/../build
strategy:
max-parallel: 1
fail-fast: true
matrix:
machine:
Expand All @@ -63,10 +69,11 @@ jobs:

- name: Kas build
run: |
export PERSISTENT_DIR=/srv/gh-runners/quic-yocto
export DL_DIR=${PERSISTENT_DIR}/downloads
export SSTATE_DIR=${PERSISTENT_DIR}/sstate-cache
export KAS_BUILD_DIR=$(realpath $PWD/..)/build
mkdir -p $DL_DIR
mkdir -p $SSTATE_DIR
kas build ci/${{ matrix.machine }}.yml
- name: Cleanup sstate-cache
run: |
SSTATE_CACHE_MANAGEMENT="${PWD}/poky/scripts/sstate-cache-management.py --cache-dir $SSTATE_DIR --remove-duplicated --remove-orphans --debug"
#FIXME: only to check, when done remove the "echo no" and add the "--yes" arg
SSTATE_CACHE_MANAGEMENT="echo no | $SSTATE_CACHE_MANAGEMENT"
kas shell ci/${{ matrix.machine }}.yml --command "$SSTATE_CACHE_MANAGEMENT"

0 comments on commit ef27023

Please sign in to comment.