wip #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
timeout-minutes: 600 | |
runs-on: [self-hosted, linux, X64] | |
container: | |
image: dynamicdevices/yocto-ci-build:latest | |
options: --privileged --platform linux/amd64 -v /dev/net/tun:/dev/net/tun -v /dev/kvm:/dev/kvm | |
strategy: | |
matrix: | |
yocto-version: [master] | |
machine: [qemu] | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo DEBIAN_FRONTEND=noninteractive apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y gawk wget git diffstat unzip texinfo gcc build-essential \ | |
chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git \ | |
python3-jinja2 libsdl1.2-dev xterm python3-subunit mesa-common-dev zstd liblz4-tool | |
- uses: actions/checkout@v4 | |
- name: Install Kas | |
run: | | |
sudo pip3 install kas | |
- name: Restore sstate cache | |
id: cache-sstate-restore | |
uses: actions/cache/restore@v4 | |
with: | |
path: | | |
sstate | |
key: ${{ matrix.machine }}-${{ matrix.yocto-version }}-sstate | |
- name: Move sstate | |
run: | | |
mkdir -p sstate | |
mv sstate sstate-cache | |
- name: Run kas on ${{ matrix.machine }} on ${{ matrix.yocto-version }} | |
run: | | |
export SSTATE_DIR="${PWD}/sstate" | |
export SSTATE_MIRRORS="file://.* file://${PWD}/sstate-cache/PATH;downloadfilename=PATH" | |
kas -l debug build kas/meta-java-${{ matrix.yocto-version }}.yml:kas/machine-${{ matrix.machine }}.yml:kas/ci.yml | |
- name: Save sstate cache | |
id: cache-sstate-save | |
uses: actions/cache/save@v4 | |
if: always() | |
with: | |
path: | | |
sstate | |
key: ${{ steps.cache-sstate-restore.outputs.cache-primary-key }} |