CI: separate caches for Boost and ICU

This commit is contained in:
Sergii Pylypenko
2022-01-15 00:03:58 +02:00
parent bbaa42c1ec
commit 8d10d1ff0f
2 changed files with 24 additions and 8 deletions

View File

@@ -65,22 +65,30 @@ jobs:
id: icu-rev
run: echo "::set-output name=ICU_REV::`git -C project/jni/iconv/src rev-parse HEAD`"
- name: Copy precompiled libraries from cache
- name: Copy Boost libraries from cache
uses: actions/cache@v2
id: cache
id: cache-boost
with:
# The same SDL revision will produce the same libraries
key: ${{steps.boost-rev.outputs.BOOST_REV}}-${{steps.icu-rev.outputs.ICU_REV}}
key: ${{steps.boost-rev.outputs.BOOST_REV}}
path: |
build-android/project/jni/boost/include
build-android/project/jni/boost/lib
- name: Copy ICU libraries from cache
uses: actions/cache@v2
id: cache-icu
with:
# The same SDL revision will produce the same libraries
key: ${{steps.icu-rev.outputs.ICU_REV}}
path: |
build-android/project/jni/iconv/include
build-android/project/jni/iconv/lib
build-android/project/jni/icuuc/include
build-android/project/jni/icuuc/lib
- name: Touch cached file timestamps
if: steps.cache.outputs.cache-hit == 'true'
if: steps.cache-boost.outputs.cache-hit == 'true' || steps.cache-icu.outputs.cache-hit == 'true'
working-directory: build-android
run: >
touch

View File

@@ -65,22 +65,30 @@ jobs:
id: icu-rev
run: echo "::set-output name=ICU_REV::`git -C project/jni/iconv/src rev-parse HEAD`"
- name: Copy precompiled libraries from cache
- name: Copy Boost libraries from cache
uses: actions/cache@v2
id: cache
id: cache-boost
with:
# The same SDL revision will produce the same libraries
key: ${{steps.boost-rev.outputs.BOOST_REV}}-${{steps.icu-rev.outputs.ICU_REV}}
key: ${{steps.boost-rev.outputs.BOOST_REV}}
path: |
build-android/project/jni/boost/include
build-android/project/jni/boost/lib
- name: Copy ICU libraries from cache
uses: actions/cache@v2
id: cache-icu
with:
# The same SDL revision will produce the same libraries
key: ${{steps.icu-rev.outputs.ICU_REV}}
path: |
build-android/project/jni/iconv/include
build-android/project/jni/iconv/lib
build-android/project/jni/icuuc/include
build-android/project/jni/icuuc/lib
- name: Touch cached file timestamps
if: steps.cache.outputs.cache-hit == 'true'
if: steps.cache-boost.outputs.cache-hit == 'true' || steps.cache-icu.outputs.cache-hit == 'true'
working-directory: build-android
run: >
touch