Skip to content

Commit 12e3be9

Browse files
authored
Update cmake-linux-x86.yml
1 parent ca23745 commit 12e3be9

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,29 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@v4
2525

26-
- name: Setup LLVM
27-
uses: ZhongRuoyu/setup-llvm@5bee61a33dd6160cb4dd652cd80d56ff3654535f
26+
27+
- name: Set up Ninja
28+
uses: ashutoshvarma/setup-ninja@93f8b9763516f1fb9b4d9840b12d844bee17791f
29+
2830

2931
- name: Set up GCC
3032
uses: egor-tensin/setup-gcc@v1
3133
with:
3234
version: latest
3335
platform: x64
36+
37+
38+
- 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+
git reset --hard 7615503409f19ad7e2e2f946437919d0689d4b3e
44+
cd llvm-project
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
48+
3449
3550
- name: Configure CMake
3651
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.

0 commit comments

Comments
 (0)