Skip to content

meta-lxatac-bsp: barebox: import dts changes send to Linux mainline and cleanup patchstack #218

meta-lxatac-bsp: barebox: import dts changes send to Linux mainline and cleanup patchstack

meta-lxatac-bsp: barebox: import dts changes send to Linux mainline and cleanup patchstack #218

Workflow file for this run

name: build
on:
pull_request:
branches:
- scarthgap
- stable-*
push:
branches:
- scarthgap
- stable-*
schedule:
- cron: '10 21 * * 4'
jobs:
build:
name: build
runs-on: [self-hosted, forrest, build]
if: ${{ vars.HAS_BUILD_RUNNER || github.repository == 'linux-automation/meta-lxatac' }}
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build bundle and images
run: |
# oe-init-build-env implicitly cd-s into the build directory.
source oe-init-build-env build
# Apply default config provided by our custom runner images
cp ~/.yocto/auto.conf conf/
# Build all images that are relevant to us.
bitbake \
lxatac-core-image-base \
lxatac-core-bundle-base \
lxatac-debug-image \
emmc-image \
emmc-boot-image \
tf-a-stm32mp
# Make the generates images available at a less deeply nested
# location for the artifact upload (the directory structure is
# preserved in the archive).
# Keep in mind that we are in the `build` directory because
# `oe-init-build-env` implicitly `cd`s there.
mv tmp/deploy/images/lxatac ../images
- name: Print logs of failed jobs
if: ${{ failure() }}
shell: python3 {0}
run: |
import os
PREFIX = 'ERROR: Logfile of failure stored in:'
for ln in open('build/tmp/log/cooker/lxatac/console-latest.log'):
if not ln.startswith(PREFIX):
continue
path = ln.removeprefix(PREFIX).strip()
shorter_path = path.removeprefix(os.getcwd()).strip('/')
print(f'::group::Contents of "{shorter_path}"')
print(open(path).read())
print('::endgroup::')
- name: Cache Data
env:
CACHE_KEY: ${{ secrets.YOCTO_CACHE_KEY }}
if: ${{ github.ref_protected && env.CACHE_KEY }}
run: |
mkdir -p ~/.ssh
echo "$CACHE_KEY" >> ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
rsync -rvx --ignore-existing build/downloads yocto-cache: || true
rsync -rvx --ignore-existing build/sstate-cache yocto-cache: || true
- name: Upload Artifacts to the Forrest Runner
uses: forrest-runner/upload-artifact@main
with:
path: |
images/tf-a-stm32mp153c-lxa-tac.stm32
images/emmc-boot-image-lxatac.fip
images/emmc-boot-image-lxatac.img
images/emmc-image-lxatac.simg
images/lxatac-core-bundle-base-lxatac.raucb
- name: Upload Artifact links to GitHub
uses: actions/upload-artifact@v4
with:
name: images
path: images/*.desktop