Skip to content

Commit

Permalink
ci: Use prebuilt clang binaries on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpfard committed Sep 2, 2023
1 parent 5b5fc6e commit 3aeba9c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,15 @@ jobs:
# ninja version to download. Default: 1.10.0
version: 1.10.0
dest: ${{ github.workspace }}/ninja_bin

- name: Add prebuilt llvm install dir to PATH
run: |
"${{ github.workspace }}/llvm-install-${{ env.LLVM_VER }}/bin\n" + (Get-Content $env:GITHUB_PATH -Raw) | Set-Content $env:GITHUB_PATH
- name: Configure CMake
env:
CMAKE_PREFIX_PATH: ${{ github.workspace }}/llvm-install-${{ env.LLVM_VER }}
run: cmake -B build -G Ninja -DFINAL_STAGE=1 -DCMAKE_CXX_COMPILER=clang.exe -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=jakt-install
run: cmake -B build -G Ninja -DFINAL_STAGE=1 "-DCMAKE_CXX_COMPILER=${{ github.workspace }}/llvm-install-${{ env.LLVM_VER }}/bin/clang.exe" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=jakt-install

- name: Build Jakt Stage 1 Selfhost
run: cmake --build build
Expand Down

0 comments on commit 3aeba9c

Please sign in to comment.