CI: separate caches for Boost and ICU
This commit is contained in:
16
.github/workflows/ballfield.yml
vendored
16
.github/workflows/ballfield.yml
vendored
@@ -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
|
||||
|
||||
16
.github/workflows/sdl2-demo.yml
vendored
16
.github/workflows/sdl2-demo.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user