Skip to content

Cleanup sstate cache #9

Cleanup sstate cache

Cleanup sstate cache #9

Workflow file for this run

name: Build Yocto
on:
pull_request:
push:
branches:
- main
jobs:
compile:
env:
CACHE_DIR: '/srv/gh-runners/quic-yocto'
KAS_WORK_DIR: '${{ env.GITHUB_WORKSPACE }}/../kas'

Check failure on line 13 in .github/workflows/build-yocto.yml

View workflow run for this annotation

GitHub Actions / Build Yocto

Invalid workflow file

The workflow is not valid. .github/workflows/build-yocto.yml (Line: 13, Col: 21): Unrecognized named-value: 'env'. Located at position 1 within expression: env.GITHUB_WORKSPACE
strategy:
max-parallel: 1
fail-fast: true
matrix:
machine:
- qcm6490-idp
- qcs6490-rb3gen2-core-kit
- sa8775p-ride-sx
runs-on: [self-hosted, x86]
name: ${{ matrix.machine }}/poky/systemd
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cleanup sstate-cache
env:
DL_DIR: '${{ env.CACHE_DIR }}/downloads'
SSTATE_DIR: '${{ env.CACHE_DIR }}/sstate-cache'
run: |
mkdir $KAS_WORK_DIR
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"