Skip to content

Commit 0922092

Browse files
authored
Update cmake-linux-x86.yml
1 parent 4a4f12a commit 0922092

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

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

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

26+
- name: Cache LLVM build
27+
uses: actions/cache@v3
28+
with:
29+
# Adjust these paths to match where LLVM is built and installed
30+
path: |
31+
Asa-LLVM-Compiled/build
32+
/usr/local/llvm
33+
key: llvm-build-${{ hashFiles('Asa-LLVM-Compiled/llvm/**', 'Asa-LLVM-Compiled/build/CMakeCache.txt') }}
34+
restore-keys: |
35+
llvm-build-
36+
2637
2738
- name: Set up Ninja
2839
uses: ashutoshvarma/setup-ninja@93f8b9763516f1fb9b4d9840b12d844bee17791f
@@ -39,13 +50,13 @@ jobs:
3950
# uses: ZhongRuoyu/setup-llvm@v0.1.1
4051
# with:
4152
# llvm-version: 20
42-
53+
54+
4355

4456
- name: Setup LLVM
4557
run: |
4658
git clone --depth 1 https://github.com/sam-astro/Asa-LLVM-Compiled
4759
cd Asa-LLVM-Compiled
48-
sudo rm -r build
4960
mkdir build
5061
cmake -S llvm -B build -G Ninja -DLLVM_TARGETS_TO_BUILD="X86" -DCMAKE_BUILD_TYPE=MinSizeRel
5162
cd build

0 commit comments

Comments
 (0)