Added intial build test for Network examples. Removed previous added … #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: BSP build Test | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
schedule: | |
- cron: '00 20 * * 6' | |
jobs: | |
install_build_execute: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout STM32H743I-EVAL_BSP root | |
uses: actions/checkout@v4 | |
with: | |
sparse-checkout: | | |
.github | |
.gitignore | |
.ci | |
vcpkg-configuration.json | |
CI | |
- name: Checkout STM32H743I-EVAL_BSP | |
uses: actions/checkout@v4 | |
with: | |
repository: Evagan2018/STM32H743I-EVAL_BSP | |
path: ./BSP | |
- name: Checkout STM32H7xx_DFP | |
uses: actions/checkout@v4 | |
with: | |
repository: Open-CMSIS-Pack/STM32H7xx_DFP | |
path: ./DFP | |
- name: Checkout MDK-Middleware | |
uses: actions/checkout@v4 | |
with: | |
repository: ARM-software/MDK-Middleware | |
path: ./MW | |
- name: Checkout CMSIS-Driver_STM32 | |
uses: actions/checkout@v4 | |
with: | |
repository: Open-CMSIS-Pack/CMSIS-Driver_STM32 | |
path: ./CMSIS-Driver_STM32 | |
- name: Show directories after the initial checkout | |
working-directory: ./../ | |
run: | | |
tree -d -L 7 | |
- name: Install tools | |
uses: ARM-software/cmsis-actions/vcpkg@v1 | |
- name: Activate Arm tool license | |
uses: ARM-software/cmsis-actions/armlm@v1 | |
- name: Initialize CMSIS pack root folder | |
run: | | |
cpackget init https://www.keil.com/pack/index.pidx | |
cpackget update-index | |
- name: Add local CMSIS packs | |
run: | | |
cpackget add ./BSP/Keil.STM32H743I-EVAL_BSP.pdsc | |
cpackget add ./DFP/Keil.STM32H7xx_DFP.pdsc | |
cpackget add ./MW/Keil.MDK-Middleware.pdsc | |
cpackget add ./CMSIS-Driver_STM32/ARM.CMSIS-Driver_STM32.pdsc | |
cpackget list | |
csolution list environment --verbose | |
- name: Show local_repository.pidx content | |
run: | | |
cat /home/runner/.cache/arm/packs/.Local/local_repository.pidx | |
- name: List packs | |
run: | | |
cpackget list | |
- name: Show directories | |
working-directory: ./../ | |
run: | | |
tree -d -L 5 | |
- name: Copy BSP examples to CI directory | |
working-directory: ./ | |
run: | | |
cp -rf ./BSP/Examples/* ./CI/Examples/ | |
- name: Copy Middleware examples to CI directory | |
working-directory: ./ | |
run: | | |
cp -rf ./MW/Examples/* ./CI/Examples/ | |
- name: Show directories | |
working-directory: ./../ | |
run: | | |
tree -d -L 5 | |
- name: Copy board layer | |
working-directory: ./ | |
run: | | |
cp -rf ./BSP/Layers/IoT/* ./CI/Examples/FileSystem/Board/ | |
cp -rf ./BSP/Layers/IoT/* ./CI/Examples/Network/Board/ | |
cp -rf ./BSP/Layers/IoT/* ./CI/Examples/USB/Device/Board/ | |
cp -rf ./BSP/Layers/IoT/* ./CI/Examples/USB/Host/Board/ | |
- name: Copy *-CI.csolution.yml files | |
working-directory: ./ | |
run: | | |
cp ./.ci/FileSystem-CI.csolution.yml ./CI/Examples/FileSystem/ | |
cp ./.ci/Network-CI.csolution.yml ./CI/Examples/Network/ | |
cp ./.ci/USB_Device-CI.csolution.yml ./CI/Examples/USB/Device/ | |
cp ./.ci/USB_Host-CI.csolution.yml ./CI/Examples/USB/Host/ | |
- name: Show directories | |
working-directory: ./CI/Examples/ | |
run: | | |
tree -d -L 5 | |
ls ./FileSystem/*.yml | |
- name: FileSystem initial build test | |
working-directory: ./CI/Examples/FileSystem/ | |
run: | | |
cbuild ./FileSystem-CI.csolution.yml --update-rte --packs \ | |
--toolchain AC6 --rebuild | |
- name: Network initial build test | |
working-directory: ./CI/Examples/Network/ | |
run: | | |
cbuild ./Network-CI.csolution.yml --update-rte --packs \ | |
--toolchain AC6 --rebuild |