Skip to content

ci: Archive images on shared disk #19

ci: Archive images on shared disk

ci: Archive images on shared disk #19

Workflow file for this run

name: PR Build
on:
pull_request:
jobs:
kas:
strategy:
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: kas build
run: |
export DL_DIR=/srv/gh-runners/quic-yocto/downloads
export SSTATE_DIR=/srv/gh-runners/quic-yocto/sstate-cache
mkdir -p $DL_DIR
mkdir -p $SSTATE_DIR
mkdir build
cd build
kas build ../ci/${{ matrix.machine }}.yml
build_dir=/srv/gh-runners/quic-yocto/builds/${GITHUB_RUN_ID}
mkdir -p $build_dir
img_dir=$build_dir/${{ matrix.machine }}
[ -d $img_dir ] && rm -rf $img_dir
mv build/tmp/images/${{ matrix.machine }}/* $imgdir