Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
quaresmajose committed Oct 25, 2024
1 parent 3f9fea7 commit 58bf458
Showing 1 changed file with 5 additions and 49 deletions.
54 changes: 5 additions & 49 deletions .github/workflows/build-yocto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,46 +7,7 @@ on:
- main

jobs:
kas-lock:
runs-on: [self-hosted, x86]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Run kas lock
run: |
kas dump --update --lock --inplace ci/base.yml
- uses: actions/upload-artifact@v4
with:
name: kas-lock
path: ci/*.lock.yml

yocto-check-layer:
needs: kas-lock
runs-on: [self-hosted, x86]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/download-artifact@v4
with:
name: kas-lock
path: ci/*.lock.yml

- name: Run yocto-check-layer
run: |
ci/yocto-check-layer.sh
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
Expand All @@ -62,18 +23,13 @@ jobs:
with:
fetch-depth: 0

- uses: actions/download-artifact@v4
with:
name: kas-lock
path: ci/*.lock.yml

- name: Kas build
run: |
mkdir $KAS_WORK_DIR
kas build ci/mirror.yml:ci/${{ matrix.machine }}.yml
- name: Cleanup sstate-cache
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
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"
Expand Down

0 comments on commit 58bf458

Please sign in to comment.