Skip to content

Commit 15e6ec1

Browse files
authored
Merge pull request #141 from robinst/jv-ci-cache
CI: add cache hit checks
2 parents ee115f0 + ca55db9 commit 15e6ec1

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
key: swig-${{ matrix.os }}-v4.1.1
4343

4444
- name: Install SWIG v4.1.1
45+
if: steps.cache-swig.outputs.cache-hit != 'true'
4546
run: |
4647
sudo apt install yodl
4748
git clone --depth 1 --branch v4.1.1 https://github.com/swig/swig.git
@@ -60,10 +61,13 @@ jobs:
6061
id: cache-taglib
6162
uses: actions/cache@v2
6263
with:
63-
path: tmp/${{ env.PLATFORM }}/taglib-${{ env.TAGLIB_VERSION }}
64-
key: taglib-${{ matrix.os }}-v${{ env.TAGLIB_VERSION }}
64+
path: |
65+
tmp/${{ env.PLATFORM }}/taglib-${{ env.TAGLIB_VERSION }}
66+
tmp/taglib-${{ env.TAGLIB_VERSION }}.tar.gz
67+
key: taglib-${{ matrix.os }}-v${{ env.TAGLIB_VERSION }}-cache.v3
6568

6669
- name: Install TagLib (C++)
70+
if: steps.cache-taglib.outputs.cache-hit != 'true'
6771
run: bundle exec rake vendor
6872

6973
- name: Generate SWIG Wrappers

0 commit comments

Comments
 (0)