Skip to content

Skeleton layer + CI

Skeleton layer + CI #6

name: Build SGL QEMU ARM64
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: "Setup Env & Build"
runs-on: ubuntu-24.04
env:
KAS_WORKING_DIR: "${{ github.workspace }}/kas-build"
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
path: layers/meta-sgl
- name: Install host dependencies
run: |
sudo apt-get update
sudo apt-get install -y gawk wget git-core diffstat unzip texinfo \
gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm \
python3-pexpect python3-pip
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install kas and BitBake
run: |
python -m pip install --upgrade pip
pip install kas
- name: Build SGL
run: |
mkdir -p "$KAS_WORK_DIR"
# Fetch layers and bitbake via kas
kas checkout layers/meta-sgl/kas/sgl-scarthgap-qemuarm64.yml -d "$KAS_WORK_DIR"
# Ensure BitBake from poky is in PATH for kas build
export PATH="$KAS_WORK_DIR/layers/bitbake/bin:$PATH"
# Build the QEMU ARM64 configuration
kas build layers/meta-sgl/kas/sgl-scarthgap-qemuarm64.yml
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3