From d665bfb8994a52029bdf56576ad4e982cbc684be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Arrufat?= <1671644+arrufat@users.noreply.github.com> Date: Mon, 7 Feb 2022 12:26:31 +0900 Subject: [PATCH] try to fix build on macOS (#2503) --- .github/workflows/build_cmake.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index b9895edad..0de938182 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -24,19 +24,19 @@ jobs: - uses: actions/checkout@v2 - name: Configure - working-directory: ${{ github.workspace }}/dlib/test - run: cmake . -B ${{ env.build_dir }} - - - name: Build just tests working-directory: ${{ github.workspace }}/dlib/test run: | if [ "$RUNNER_OS" == "macOS" ]; then # MacOS machines often come with low quality BLAS libraries installed, so don't use those. - cmake --build ${{ env.build_dir }} --config ${{ env.config }} --target dtest --parallel 4 -DDLIB_USE_BLAS=0 -DDLIB_USE_LAPACK=0 + cmake . -B ${{ env.build_dir }} -DDLIB_USE_BLAS=0 -DDLIB_USE_LAPACK=0 else - cmake --build ${{ env.build_dir }} --config ${{ env.config }} --target dtest --parallel 4 + cmake . -B ${{ env.build_dir }} fi; + - name: Build just tests + working-directory: ${{ github.workspace }}/dlib/test + run: cmake --build ${{ env.build_dir }} --config ${{ env.config }} --target dtest --parallel 4 + - name: Test working-directory: ${{ github.workspace }}/dlib/test/${{ env.build_dir }} run: |