Skip to content

Commit 428cb50

Browse files
authored
Update cmake-linux-x86.yml
1 parent 18bf073 commit 428cb50

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

.github/workflows/cmake-linux-x86.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,23 @@ jobs:
3434
version: latest
3535
platform: x64
3636

37-
3837
- name: Setup LLVM
39-
run: |
40-
git config --add remote.origin.fetch '^refs/heads/users/*'
41-
git config --add remote.origin.fetch '^refs/heads/revert-*'
42-
git clone --depth 1 https://github.com/llvm/llvm-project.git
43-
cd llvm-project
44-
git fetch origin 7615503409f19ad7e2e2f946437919d0689d4b3e
45-
cmake -S llvm -B build -G Ninja -DLLVM_TARGETS_TO_BUILD="X86" -DCMAKE_BUILD_TYPE=MinSizeRel
46-
cmake --build build
47-
cmake --install build
38+
# You may pin to the exact commit or the version.
39+
uses: ZhongRuoyu/setup-llvm@v0.1.1
40+
with:
41+
llvm-version: v20.1.8
42+
43+
44+
# - name: Setup LLVM
45+
# run: |
46+
# git config --add remote.origin.fetch '^refs/heads/users/*'
47+
# git config --add remote.origin.fetch '^refs/heads/revert-*'
48+
# git clone --depth 1 https://github.com/llvm/llvm-project.git
49+
# cd llvm-project
50+
# git fetch origin 7615503409f19ad7e2e2f946437919d0689d4b3e
51+
# cmake -S llvm -B build -G Ninja -DLLVM_TARGETS_TO_BUILD="X86" -DCMAKE_BUILD_TYPE=MinSizeRel
52+
# cmake --build build
53+
# cmake --install build
4854

4955

5056
- name: Configure CMake

0 commit comments

Comments
 (0)