Skip to content

Commit 8380627

Browse files
authored
Add caching for ci clang install (#168)
1 parent dd5d570 commit 8380627

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,17 @@ jobs:
1919
run: |
2020
VERSION=${{ matrix.python-version }}
2121
echo "environment=${VERSION//.}" >> $GITHUB_OUTPUT
22+
- name: Cache LLVM and Clang
23+
id: cache-llvm
24+
uses: actions/cache@v3
25+
with:
26+
path: llvm/lib/libclang.so*
27+
key: llvm-16
2228
- name: Install LLVM and Clang
2329
uses: KyleMayes/install-llvm-action@v1
2430
with:
2531
version: "16.0"
32+
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
2633
- name: Symlink libclang.so
2734
run: sudo ln -s ${{ env.LLVM_PATH }}/lib/libclang.so /usr/lib/x86_64-linux-gnu/libclang-16.so
2835
- name: Install dependencies
@@ -37,10 +44,17 @@ jobs:
3744
runs-on: ubuntu-latest
3845
steps:
3946
- uses: actions/checkout@v3
47+
- name: Cache LLVM and Clang
48+
id: cache-llvm
49+
uses: actions/cache@v3
50+
with:
51+
path: llvm/lib/libclang.so*
52+
key: llvm-16
4053
- name: Install LLVM and Clang
4154
uses: KyleMayes/install-llvm-action@v1
4255
with:
4356
version: "16.0"
57+
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
4458
- name: Symlink libclang.so
4559
run: sudo ln -s ${{ env.LLVM_PATH }}/lib/libclang.so /usr/lib/x86_64-linux-gnu/libclang-16.so
4660
- name: Install dependencies
@@ -61,10 +75,17 @@ jobs:
6175
runs-on: ubuntu-latest
6276
steps:
6377
- uses: actions/checkout@v3
78+
- name: Cache LLVM and Clang
79+
id: cache-llvm
80+
uses: actions/cache@v3
81+
with:
82+
path: llvm/lib/libclang.so*
83+
key: llvm-16
6484
- name: Install LLVM and Clang
6585
uses: KyleMayes/install-llvm-action@v1
6686
with:
6787
version: "16.0"
88+
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
6889
- name: Symlink libclang.so
6990
run: sudo ln -s ${{ env.LLVM_PATH }}/lib/libclang.so /usr/lib/x86_64-linux-gnu/libclang-16.so
7091
- name: Install dependencies
@@ -81,10 +102,17 @@ jobs:
81102
runs-on: ubuntu-latest
82103
steps:
83104
- uses: actions/checkout@v3
105+
- name: Cache LLVM and Clang
106+
id: cache-llvm
107+
uses: actions/cache@v3
108+
with:
109+
path: llvm/lib/libclang.so*
110+
key: llvm-16
84111
- name: Install LLVM and Clang
85112
uses: KyleMayes/install-llvm-action@v1
86113
with:
87114
version: "16.0"
115+
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
88116
- name: Symlink libclang.so
89117
run: sudo ln -s ${{ env.LLVM_PATH }}/lib/libclang.so /usr/lib/x86_64-linux-gnu/libclang-16.so
90118
- name: Install dependencies

0 commit comments

Comments
 (0)