Skip to content

build-yocto: cleanup sstate-cache #84

build-yocto: cleanup sstate-cache

build-yocto: cleanup sstate-cache #84

Workflow file for this run

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

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: 15): Unrecognized named-value: 'env'. Located at position 1 within expression: env.CACHE_DIR .github/workflows/build-yocto.yml (Line: 14, Col: 19): Unrecognized named-value: 'env'. Located at position 1 within expression: env.CACHE_DIR
SSTATE_DIR: ${{ env.CACHE_DIR }}/sstate-cache
KAS_WORK_DIR: ${{ env.GITHUB_WORKSPACE }}/../kas
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
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"