Add HW Level Build to CI/CD #14
This file contains hidden or 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: STM32CubeIDE Build | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| type: [opened, synchronize, reopened] | |
| jobs: | |
| stm32cubeide_build: | |
| name: Headless STM32CubeIDE Build | |
| runs-on: ubuntu-latest | |
| container: | |
| image: xanderhendriks/stm32cubeide:15.1 | |
| options: --privileged | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| - name: Setup permissions | |
| run: chmod -R +x . | |
| - name: Install cmake | |
| run: | | |
| apt-get update | |
| apt-get install -y cmake | |
| - name: Build project using headless STM32CubeIDE | |
| run: | | |
| bash ./zeropilot3.5/hwbuild.bash -c l552 | |
| /opt/st/stm32cubeide_1.18.1/stm32cubeide \ | |
| --launcher.suppressErrors -nosplash \ | |
| -application org.eclipse.cdt.managedbuilder.core.headlessbuild \ | |
| -build stm32l552xx \ | |
| -importAll ./ \ | |
| -data /local/temp |