diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 0d29e8f..73454ca 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -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