diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 927559449..8d727c55e 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -36,7 +36,7 @@ jobs: - run: cmake -E make_directory build - working-directory: build/ - run: cmake $GITHUB_WORKSPACE -DCMAKE_CXX_COMPILER=clang++-${{ matrix.llvm }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} + run: cmake $GITHUB_WORKSPACE -DCMAKE_CXX_COMPILER=$(brew --prefix llvm@${{ matrix.llvm }})/bin/clang-${{ matrix.llvm }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} - working-directory: build/ run: cmake --build .