Skip to content

Commit f513ea4

Browse files
authored
Add LLVM setup step in CI workflow
Added a step to install LLVM for CMake configuration.
1 parent 7e7f207 commit f513ea4

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,27 @@ jobs:
2323
- name: Checkout source
2424
uses: actions/checkout@v4
2525

26+
# --- NEW STEP ADDED: Install LLVM ---
27+
# Ye step teeno OS (Win/Mac/Linux) par LLVM install karega
28+
# taaki CMake ko "LLVMConfig.cmake" mil sake.
29+
- name: Setup LLVM
30+
uses: wang-xinyu/setup-llvm@v1
31+
with:
32+
version: '17' # Aap apni zaroorat ke hisaab se version change kar sakte hain (16, 17, 18)
33+
2634
- name: Setup CMake
2735
uses: lukka/get-cmake@latest
2836

2937
- name: Configure
3038
shell: bash
39+
# Humne LLVM_DIR add kiya hai taaki CMake ko pata chale LLVM kahan installed hai
3140
run: |
3241
cmake -S . -B build \
3342
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
3443
-DBUILD_TESTS=OFF \
35-
-DBUILD_BENCH=OFF
44+
-DBUILD_BENCH=OFF \
45+
-DLLVM_DIR="${{ env.LLVM_PATH }}/lib/cmake/llvm"
3646
3747
- name: Build (verbose)
3848
shell: bash
39-
run: cmake --build build --verbose
40-
49+
run: cmake --build build --verbose --config ${{ env.BUILD_TYPE }}

0 commit comments

Comments
 (0)