Bob the Building Samples #4
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: Release Samples | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| tags: | |
| - 'v[0-9]+.[0-9]+.[0-9]+' | |
| # Set necessary environment variables | |
| env: | |
| GCC_ARM_TOOLS_PATH: /usr/bin | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-backend: | |
| name: Build EVT-Core Samples | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Install Compiler and Linter | |
| run: | | |
| sudo apt-get install gcc-arm-none-eabi | |
| sudo apt-get install clang-format-15 | |
| sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 10000 | |
| - name: F302 Build | |
| run: | | |
| cmake -DTARGET_DEV=STM32F302x8 -B ${{github.workspace}}/build/f302 | |
| cmake --build ${{github.workspace}}/build/f302 | |
| - name: F334 Build | |
| run: | | |
| cmake -DTARGET_DEV=STM32F334x8 -B ${{github.workspace}}/build/f334 | |
| cmake --build ${{github.workspace}}/build/f334 | |
| - name: F446 Build | |
| run: | | |
| cmake -DTARGET_DEV=STM32F446xx -B ${{github.workspace}}/build/f446 | |
| cmake --build ${{github.workspace}}/build/f446 | |
| - name: Upload built backend | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: samples-f203 | |
| path: | | |
| !CMakeFiles/** | |
| ${{github.workspace}}/build/f302/**/*.bin | |
| - name: Upload built backend | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: samples-f334 | |
| path: | | |
| !CMakeFiles/** | |
| ${{github.workspace}}/build/f334/**/*.bin | |
| - name: Upload built backend | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: samples-f446 | |
| path: | | |
| !CMakeFiles/** | |
| ${{github.workspace}}/build/f446/**/*.bin | |