ci(mac): cache otp install only

only cache otp installation instead of the entire kerl dir to save cache spaces
This commit is contained in:
William Yang 2022-01-13 11:41:45 +01:00
parent 0d86d41f95
commit 30d119d3a9
2 changed files with 4 additions and 4 deletions

View File

@ -152,8 +152,8 @@ jobs:
- uses: actions/cache@v2
id: cache
with:
path: ~/.kerl
key: otp-${{ matrix.otp }}-${{ matrix.macos }}
path: ~/.kerl/${{ matrix.otp }}
key: otp-install-${{ matrix.otp }}-${{ matrix.macos }}
- name: build erlang
if: steps.cache.outputs.cache-hit != 'true'
timeout-minutes: 60

View File

@ -105,8 +105,8 @@ jobs:
- uses: actions/cache@v2
id: cache
with:
path: ~/.kerl
key: otp-${{ matrix.otp }}-${{ matrix.macos }}
path: ~/.kerl/${{ matrix.otp }}
key: otp-install-${{ matrix.otp }}-${{ matrix.macos }}
- name: build erlang
if: steps.cache.outputs.cache-hit != 'true'
timeout-minutes: 60