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 25, 2024
1 parent 26b6787 commit 3f9fea7
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 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:
CACHE_DIR: /srv/gh-runners/quic-yocto
DL_DIR: ${{ env.CACHE_DIR }}/downloads
SSTATE_DIR: ${{ env.CACHE_DIR }}/sstate-cache
KAS_WORK_DIR: ${{ env.GITHUB_WORKSPACE }}/../kas
strategy:
max-parallel: 1
fail-fast: true
matrix:
machine:
Expand All @@ -63,9 +69,12 @@ jobs:

- name: Kas build
run: |
export CACHE_DIR=/srv/gh-runners/quic-yocto
export DL_DIR=${CACHE_DIR}/downloads
export SSTATE_DIR=${CACHE_DIR}/sstate-cache
export KAS_WORK_DIR=$PWD/../kas
mkdir $KAS_WORK_DIR
kas build ci/mirror.yml:ci/${{ matrix.machine }}.yml
- name: Cleanup sstate-cache
run: |
SSTATE_CACHE_MANAGEMENT="${PWD}/poky/scripts/sstate-cache-management.py --cache-dir ${{ env.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 3f9fea7

Please sign in to comment.