Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,25 @@ jobs:
run: cmake --build . --config $BUILD_TYPE
if: ${{ matrix.family != 'MP1' }}

- name: Create build directory for tests/cmsis-relative-path
run: cmake -E make_directory ${{runner.workspace}}/tests/cmsis/build-relative
if: ${{ matrix.family != 'MP1' }}

- name: Configure tests/cmsis with relative path
shell: bash
working-directory: ${{runner.workspace}}/tests/cmsis/build-relative
run: |
FAMILY_LOWER=$(echo "${{ matrix.family }}" | tr '[:upper:]' '[:lower:]')
RELATIVE_PATH="../../fetch/build/_deps/stm32cube${FAMILY_LOWER}-src"
cmake -DTEST_FAMILIES=${{ matrix.family }} -DSTM32_CUBE_${{ matrix.family }}_PATH=${RELATIVE_PATH} $GITHUB_WORKSPACE/tests/cmsis/
if: ${{ matrix.family != 'MP1' }}

- name: Build tests/cmsis with relative path
working-directory: ${{runner.workspace}}/tests/cmsis/build-relative
shell: bash
run: cmake --build . --config $BUILD_TYPE
if: ${{ matrix.family != 'MP1' }}

- name: Create build directory for tests/hal
run: cmake -E make_directory ${{runner.workspace}}/tests/hal/build

Expand Down