Mercurial > octave
comparison .github/workflows/make.yaml @ 30614:43ca3f7d6359 stable
GitHub-CI: Don't restore ccache from different "main" branch.
* .github/workflows/make.yaml: When branching, e.g. in a fork, use the ccache
from the correct "parent" branch if available.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 08 Jan 2022 12:55:17 +0100 |
parents | e9895f8335c5 |
children | 56fdd2655765 d162766886ce |
comparison
equal
deleted
inserted
replaced
30612:cfade47fc4fc | 30614:43ca3f7d6359 |
---|---|
74 with: | 74 with: |
75 path: ~/.ccache | 75 path: ~/.ccache |
76 key: ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ github.ref }}:${{ steps.ccache_cache_timestamp.outputs.timestamp }}:${{ github.sha }} | 76 key: ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ github.ref }}:${{ steps.ccache_cache_timestamp.outputs.timestamp }}:${{ github.sha }} |
77 restore-keys: | | 77 restore-keys: | |
78 ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ github.ref }} | 78 ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ github.ref }} |
79 ccache:${{ matrix.os }}:${{ matrix.compiler }} | 79 ccache:${{ matrix.os }}:${{ matrix.compiler }}:refs/heads/stable |
80 | 80 |
81 - name: configure ccache | 81 - name: configure ccache |
82 env: | 82 env: |
83 CCACHE_MAX: ${{ matrix.ccache-max }} | 83 CCACHE_MAX: ${{ matrix.ccache-max }} |
84 run: | | 84 run: | |
213 with: | 213 with: |
214 path: /Users/runner/Library/Caches/ccache | 214 path: /Users/runner/Library/Caches/ccache |
215 key: ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ github.ref }}:${{ steps.ccache_cache_timestamp.outputs.timestamp }}:${{ github.sha }} | 215 key: ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ github.ref }}:${{ steps.ccache_cache_timestamp.outputs.timestamp }}:${{ github.sha }} |
216 restore-keys: | | 216 restore-keys: | |
217 ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ github.ref }} | 217 ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ github.ref }} |
218 ccache:${{ matrix.os }}:${{ matrix.compiler }} | 218 ccache:${{ matrix.os }}:${{ matrix.compiler }}:refs/heads/stable |
219 | 219 |
220 - name: configure ccache | 220 - name: configure ccache |
221 # The cache doesn't seem to compress well on macOS. Is it already compressed? | 221 # The cache doesn't seem to compress well on macOS. Is it already compressed? |
222 # Limit the maximum size to avoid exceeding the total cache limits. | 222 # Limit the maximum size to avoid exceeding the total cache limits. |
223 run: | | 223 run: | |
418 with: | 418 with: |
419 path: C:/msys64/home/runneradmin/.ccache | 419 path: C:/msys64/home/runneradmin/.ccache |
420 key: ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ matrix.target }}:${{ github.ref }}:${{ steps.ccache_cache_timestamp.outputs.timestamp }}:${{ github.sha }} | 420 key: ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ matrix.target }}:${{ github.ref }}:${{ steps.ccache_cache_timestamp.outputs.timestamp }}:${{ github.sha }} |
421 restore-keys: | | 421 restore-keys: | |
422 ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ matrix.target }}:${{ github.ref }} | 422 ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ matrix.target }}:${{ github.ref }} |
423 ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ matrix.target }} | 423 ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ matrix.target }}:refs/heads/stable |
424 | 424 |
425 - name: configure ccache | 425 - name: configure ccache |
426 # Limit the maximum size and switch on compression to avoid exceeding the total disk or cache quota. | 426 # Limit the maximum size and switch on compression to avoid exceeding the total disk or cache quota. |
427 run: | | 427 run: | |
428 which ccache | 428 which ccache |