diff options
author | mj-xmr <mjxmr@protonmail.com> | 2021-07-10 14:56:41 +0200 |
---|---|---|
committer | mj-xmr <mjxmr@protonmail.com> | 2021-07-10 17:25:50 +0200 |
commit | bb633d3a8e8d7ac3e6f62642977844cd0fc2ad09 (patch) | |
tree | 34cdb3ae9a6577c59baf4f0ef5d760f74ca32af8 /.github/workflows | |
parent | Merge pull request #7743 (diff) | |
download | monero-bb633d3a8e8d7ac3e6f62642977844cd0fc2ad09.tar.xz |
Workflows: depends cache (static) separated from ccache (volatile)
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/depends.yml | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/.github/workflows/depends.yml b/.github/workflows/depends.yml index 3e0f048c7..8e4eaf177 100644 --- a/.github/workflows/depends.yml +++ b/.github/workflows/depends.yml @@ -45,15 +45,29 @@ jobs: - uses: actions/checkout@v1 with: submodules: recursive +# Most volatile cache - name: ccache uses: actions/cache@v2 with: - path: | - ~/.ccache - contrib/depends/built - contrib/depends/sdk-sources + path: ~/.ccache key: ccache-${{ matrix.toolchain.host }}-${{ github.sha }} restore-keys: ccache-${{ matrix.toolchain.host }}- +# Less volatile cache + - name: depends cache + uses: actions/cache@v2 + with: + path: contrib/depends/built + key: depends-${{ matrix.toolchain.host }}-${{ hashFiles('contrib/depends/packages/*') }} + restore-keys: | + depends-${{ matrix.toolchain.host }}-${{ hashFiles('contrib/depends/packages/*') }} + depends-${{ matrix.toolchain.host }}- +# Static cache + - name: OSX SDK cache + uses: actions/cache@v2 + with: + path: contrib/depends/sdk-sources + key: sdk-${{ matrix.toolchain.host }}-${{ matrix.toolchain.osx_sdk }} + restore-keys: sdk-${{ matrix.toolchain.host }}-${{ matrix.toolchain.osx_sdk }} - name: set apt conf run: | echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom |