wolfBoot/.github/workflows/test-build-stm32cube.yml

58 lines
1.3 KiB
YAML

name: Wolfboot Reusable Build Workflow for STM32Cube SDK
on:
workflow_call:
inputs:
arch:
required: true
type: string
config-file:
required: true
type: string
cube-repo:
description: 'STM32Cube repository to clone (e.g., STMicroelectronics/STM32CubeL4)'
required: true
type: string
make-args:
required: false
type: string
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/wolfssl/wolfboot-ci-arm:v1.0
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/checkout@v4
with:
repository: ${{inputs.cube-repo}}
path: STM32Cube
submodules: true
- name: Trust workspace
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: make distclean
run: |
make distclean
- name: Select config
run: |
cp ${{inputs.config-file}} .config && make include/target.h
- name: Build tools
run: |
make -C tools/keytools && make -C tools/bin-assemble
- name: Build wolfboot
run: |
make STM32CUBE="$GITHUB_WORKSPACE/STM32Cube" ${{inputs.make-args}} V=1