diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index ef2b62dacf..8a6f95ab77 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -92,8 +92,10 @@ jobs: - run: cat .gclient - run: ls -la - run: gclient sync && cd v8 - - name: Get system Clang/LLVM path - run: echo "CLANG_PATH=$(which clang)" >> $GITHUB_ENV + - name: Get Homebrew LLVM path + run: echo "LLVM_PATH=$(brew --prefix llvm@15)" >> $GITHUB_ENV + - name: Check Homebrew Clang version + run: ${{ env.LLVM_PATH }}/bin/clang --version - name: Check system Clang version run: clang --version - name: Generate build dir @@ -120,7 +122,7 @@ jobs: use_custom_libcxx=false treat_warnings_as_errors=false use_lld=false - clang_base_path="'$(which clang | xargs dirname)'"' > v8/out.gn/x64.release/args.gn + clang_base_path="${{ env.LLVM_PATH }}"' > v8/out.gn/x64.release/args.gn - run: cat v8/out.gn/x64.release/args.gn - name: Setup Ninja uses: ashutoshvarma/setup-ninja@master