mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 09:51:36 +00:00
actions: reduce cache sizes by only caching necessary path for OS
This commit is contained in:
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@@ -112,15 +112,14 @@ jobs:
|
||||
id: cache-python-ssl
|
||||
with:
|
||||
path: |
|
||||
bin.tar.xz
|
||||
src/cpython
|
||||
key: gam-${{ matrix.jid }}-20240208b
|
||||
cache.tar.xz
|
||||
key: gam-${{ matrix.jid }}-20240209
|
||||
|
||||
- name: Untar Cache archive
|
||||
if: matrix.goal == 'build' && steps.cache-python-ssl.outputs.cache-hit == 'true'
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: |
|
||||
tar xvvf bin.tar.xz
|
||||
tar xvvf cache.tar.xz
|
||||
|
||||
- name: Use pre-compiled Python for testing
|
||||
if: matrix.python != ''
|
||||
@@ -840,7 +839,12 @@ jobs:
|
||||
if: matrix.goal == 'build' && steps.cache-python-ssl.outputs.cache-hit != 'true'
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: |
|
||||
tar cJvvf bin.tar.xz bin/
|
||||
if [[ "${RUNNER_OS}" == "Windows" ]]; then
|
||||
tar_folder="src/cpython/"
|
||||
else
|
||||
tar_folder="bin/"
|
||||
fi
|
||||
tar cJvvf cache.tar.xz "$tar_folder"
|
||||
|
||||
publish:
|
||||
if: github.event_name == 'push'
|
||||
|
||||
Reference in New Issue
Block a user