wolfBoot/.github/workflows/test-build-mcux-sdk.yml

62 lines
1.5 KiB
YAML

name: Wolfboot Reusable Build Workflow for MCUXpresso SDK
on:
workflow_call:
inputs:
arch:
required: true
type: string
config-file:
required: true
type: string
make-args:
required: false
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install west
run: |
python3 -m pip install --user west
echo "${HOME}/.local/bin" >> $GITHUB_PATH
- name: Initialize MCUXpresso SDK
run: |
west init -m https://github.com/nxp-mcuxpresso/mcuxsdk-manifests
west update --narrow -o=--depth=1 devices/MCX
- name: Workaround for sources.list
run: sudo sed -i 's|http://azure.archive.ubuntu.com/ubuntu/|http://mirror.arizona.edu/ubuntu/|g' /etc/apt/sources.list
- name: Update repository
run: sudo apt-get update
- name: Install cross compilers
run: |
sudo apt-get install -y gcc-arm-none-eabi
- 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 MCUXSDK=1 MCUXPRESSO="$GITHUB_WORKSPACE/mcuxsdk" MCUXPRESSO_CMSIS="$GITHUB_WORKSPACE/mcuxsdk/core/CMSIS" ${{inputs.make-args}} V=1