Skip to content

Commit e39aed5

Browse files
committed
Use llvm/actions/configure-llvm-project
This prevents to configure llvm on windows using mingw's gcc
1 parent e92520a commit e39aed5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ jobs:
99
runs-on: ${{ matrix.os }}-latest
1010
steps:
1111
- uses: actions/checkout@v4
12+
- uses: llvm/actions/setup-windows@main
13+
if: ${{ runner.os == 'Windows' }}
1214
- name: Install Ninja
1315
uses: llvm/actions/install-ninja@main
1416
- name: Configure llvm cmake
15-
run: cmake -Bbuild -Sllvm -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_PROJECTS="lld;clang"
17+
uses: llvm/actions/configure-llvm-project@main
18+
with:
19+
cmake_args: -Bbuild -Sllvm -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_PROJECTS="lld;clang"
1620
- name: Build llvm core
1721
run: cmake --build build --target LLVMCore
1822
- name: Build clang

0 commit comments

Comments
 (0)