Skip to content

Add SC598-HTOL board support #112

Add SC598-HTOL board support

Add SC598-HTOL board support #112

Workflow file for this run

name: Build ADI artifacts
on:
workflow_dispatch:
pull_request:
release:
types: [published]
env:
BR2_DL_DIR: ~/.buildroot-dl
jobs:
build:
runs-on: self-hosted
strategy:
matrix:
include:
# EZ-KIT builds
- defconfig: adi_sc598_ezkit_defconfig
board: ezkit
flavor: debug
fragments: buildroot.fragment debug.fragment
- defconfig: adi_sc598_ezkit_defconfig
board: ezkit
flavor: bootstrap
fragments: buildroot.fragment bootstrap.fragment
# HTOL builds
- defconfig: adi_sc598_ezkit_defconfig
board: htol
flavor: debug
fragments: buildroot.fragment htol.fragment debug.fragment
- defconfig: adi_sc598_ezkit_defconfig
board: htol
flavor: bootstrap
fragments: buildroot.fragment htol.fragment bootstrap.fragment
steps:
- name: Checkout br2-external
uses: actions/checkout@v6
with:
submodules: recursive
- name: Build image for ${{ matrix.board }} with ${{ matrix.flavor }} configuration
run: |
cd buildroot
make distclean
make BR2_EXTERNAL="${PWD}/.." ${{ matrix.defconfig }}
fragment_args=""
for frag in ${{ matrix.fragments }}; do
fragment_args="$fragment_args ../configs/$frag"
done
support/kconfig/merge_config.sh .config $fragment_args
make -j$(nproc)
- name: Upload Buildroot images for ${{ matrix.board }} with ${{ matrix.flavor }} configuration
uses: actions/upload-artifact@v6
with:
name: images-${{ matrix.board }}-${{ matrix.flavor }}
path: buildroot/output/images
- name: Archive output images directory
if: ${{ github.event_name == 'release' }}
run: |
tar -cJvf images-${{ matrix.board }}-${{ matrix.flavor }}-${{ github.event.release.tag_name }}.tar.xz \
buildroot/output/images/
- name: Upload release archive to release
uses: svenstaro/upload-release-action@v2
if: ${{ github.event_name == 'release' }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: images-${{ matrix.board }}-${{ matrix.flavor }}-${{ github.event.release.tag_name }}.tar.xz
tag: ${{ github.ref }}