Skip to content

Commit 454b349

Browse files
feat(ci): cache llvm installs across CI (python#54)
1 parent a6533c1 commit 454b349

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/jit.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,19 @@ jobs:
8080
- uses: actions/setup-python@v4
8181
with:
8282
python-version: '3.10'
83+
- name: Cache LLVM and Clang
84+
id: cache-llvm
85+
uses: actions/cache@v3
86+
with:
87+
path: |
88+
C:/Program Files/LLVM
89+
./llvm
90+
key: llvm-${{ matrix.llvm }}
91+
- name: Install LLVM and Clang
92+
uses: KyleMayes/install-llvm-action@v1
93+
with:
94+
version: "${{ matrix.llvm }}"
95+
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
8396
# Only support Window x64 ~ Jules
8497
# - name: macOS
8598
# if: runner.os == 'macOS'
@@ -114,7 +127,6 @@ jobs:
114127
- name: Windows
115128
if: runner.os == 'Windows'
116129
run: |
117-
choco install llvm --allow-downgrade --version ${{ matrix.llvm }}
118130
./PCbuild/build ${{ matrix.debug && '-d' || '--pgo' }} -p ${{ matrix.windows_platform }}
119131
# ./PCbuild/rt${{ matrix.debug && ' -d' || '' }} -p ${{ matrix.windows_platform }} -q -j0 -wW
120132
- name: Tests

0 commit comments

Comments
 (0)