|
| 1 | +name: Create Sample Builds |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + pull_request: |
| 6 | + push: |
| 7 | + tags: |
| 8 | + - 'v[0-9]+.[0-9]+.[0-9]+' |
| 9 | + |
| 10 | +# Set necessary environment variables |
| 11 | +env: |
| 12 | + GCC_ARM_TOOLS_PATH: /usr/bin |
| 13 | + |
| 14 | +permissions: |
| 15 | + contents: read |
| 16 | + |
| 17 | +jobs: |
| 18 | + build-backend: |
| 19 | + name: Build EVT-Core Samples |
| 20 | + runs-on: ubuntu-latest |
| 21 | + steps: |
| 22 | + - name: Checkout repository |
| 23 | + uses: actions/checkout@v6 |
| 24 | + with: |
| 25 | + submodules: recursive |
| 26 | + |
| 27 | + - name: Install Compiler and Linter |
| 28 | + run: | |
| 29 | + sudo apt-get install gcc-arm-none-eabi |
| 30 | + sudo apt-get install clang-format-15 |
| 31 | + sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 10000 |
| 32 | +
|
| 33 | + - name: F302 Debug Build |
| 34 | + run: | |
| 35 | + cmake -DTARGET_DEV=STM32F302x8 -B ${{github.workspace}}/build/f302/debug |
| 36 | + cmake --build ${{github.workspace}}/build/f302/debug |
| 37 | +
|
| 38 | + - name: F302 Release Build |
| 39 | + run: | |
| 40 | + cmake -DTARGET_DEV=STM32F302x8 -DCMAKE_BUILD_TYPE=RELEASE -B ${{github.workspace}}/build/f302/release |
| 41 | + cmake --build ${{github.workspace}}/build/f302/release |
| 42 | +
|
| 43 | + - name: F334 Debug Build |
| 44 | + run: | |
| 45 | + cmake -DTARGET_DEV=STM32F334x8 -B ${{github.workspace}}/build/f334/debug |
| 46 | + cmake --build ${{github.workspace}}/build/f334/debug |
| 47 | +
|
| 48 | + - name: F334 Release Build |
| 49 | + run: | |
| 50 | + cmake -DTARGET_DEV=STM32F334x8 -DCMAKE_BUILD_TYPE=RELEASE -B ${{github.workspace}}/build/f334/release |
| 51 | + cmake --build ${{github.workspace}}/build/f334/release |
| 52 | + |
| 53 | + - name: F446 Debug Build |
| 54 | + run: | |
| 55 | + cmake -DTARGET_DEV=STM32F446xx -B ${{github.workspace}}/build/f446/debug |
| 56 | + cmake --build ${{github.workspace}}/build/f446/debug |
| 57 | + |
| 58 | + - name: F446 Release Build |
| 59 | + run: | |
| 60 | + cmake -DTARGET_DEV=STM32F446xx -DCMAKE_BUILD_TYPE=RELEASE -B ${{github.workspace}}/build/f446/release |
| 61 | + cmake --build ${{github.workspace}}/build/f446/release |
| 62 | + |
| 63 | + - name: Upload f302 Debug Samples |
| 64 | + uses: actions/upload-artifact@v6 |
| 65 | + with: |
| 66 | + name: samples-f302-debug |
| 67 | + path: | |
| 68 | + ${{github.workspace}}/build/f302/debug/samples/**/*.bin |
| 69 | + !CmakeFiles |
| 70 | +
|
| 71 | + - name: Upload f302 Release Samples |
| 72 | + uses: actions/upload-artifact@v6 |
| 73 | + with: |
| 74 | + name: samples-f302-release |
| 75 | + path: | |
| 76 | + ${{github.workspace}}/build/f302/release/samples/**/*.bin |
| 77 | + !CmakeFiles |
| 78 | + |
| 79 | + - name: Upload f334 Debug Samples |
| 80 | + uses: actions/upload-artifact@v6 |
| 81 | + with: |
| 82 | + name: samples-f334-debug |
| 83 | + path: | |
| 84 | + ${{github.workspace}}/build/f334/debug/samples/**/*.bin |
| 85 | + !CMakeFiles |
| 86 | + |
| 87 | + - name: Upload f334 Release Samples |
| 88 | + uses: actions/upload-artifact@v6 |
| 89 | + with: |
| 90 | + name: samples-f334-release |
| 91 | + path: | |
| 92 | + ${{github.workspace}}/build/f334/release/samples/**/*.bin |
| 93 | + !CMakeFiles |
| 94 | + |
| 95 | + - name: Upload f446 Samples |
| 96 | + uses: actions/upload-artifact@v6 |
| 97 | + with: |
| 98 | + name: samples-f446-debug |
| 99 | + path: | |
| 100 | + ${{github.workspace}}/build/f446/debug/samples/**/*.bin |
| 101 | + !CmakeFiles |
| 102 | + |
| 103 | + - name: Upload f446 Release Samples |
| 104 | + uses: actions/upload-artifact@v6 |
| 105 | + with: |
| 106 | + name: samples-f446-release |
| 107 | + path: | |
| 108 | + ${{github.workspace}}/build/f446/release/samples/**/*.bin |
| 109 | + !CmakeFiles |
0 commit comments