CI (MSYS2): Update location of compiler cache.
This commit is contained in:
		
							parent
							
								
									30a0ccbd14
								
							
						
					
					
						commit
						67d33e5b98
					
				|  | @ -217,11 +217,16 @@ jobs: | ||||||
|       - name: Checkout repository |       - name: Checkout repository | ||||||
|         uses: actions/checkout@v3 |         uses: actions/checkout@v3 | ||||||
| 
 | 
 | ||||||
|  |       - name: Prepare ccache | ||||||
|  |         # Get cache location of ccache | ||||||
|  |         id: ccache-prepare | ||||||
|  |         run: | | ||||||
|  |           echo "ccachedir=$(cygpath -m $(ccache -k cache_dir))" >> $GITHUB_OUTPUT | ||||||
|  | 
 | ||||||
|       - name: Compilation cache |       - name: Compilation cache | ||||||
|         uses: actions/cache@v3 |         uses: actions/cache@v3 | ||||||
|         with: |         with: | ||||||
|           # It looks like this path needs to be hard-coded. |           path: ${{ steps.ccache-prepare.outputs.ccachedir }} | ||||||
|           path: C:/msys64/home/runneradmin/.ccache |  | ||||||
|           # We include the commit sha in the cache key, as new cache entries are |           # We include the commit sha in the cache key, as new cache entries are | ||||||
|           # only created if there is no existing entry for the key yet. |           # only created if there is no existing entry for the key yet. | ||||||
|           key: ccache-msys2-${{ matrix.msystem }}-${{ matrix.idx }}-${{ matrix.build-type }}-${{ github.ref }}-${{ github.sha }} |           key: ccache-msys2-${{ matrix.msystem }}-${{ matrix.idx }}-${{ matrix.build-type }}-${{ github.ref }}-${{ github.sha }} | ||||||
|  | @ -234,9 +239,10 @@ jobs: | ||||||
|         # Limit the maximum size and switch on compression to avoid exceeding the total disk or cache quota. |         # Limit the maximum size and switch on compression to avoid exceeding the total disk or cache quota. | ||||||
|         run: | |         run: | | ||||||
|           which ccache |           which ccache | ||||||
|           test -d ~/.ccache || mkdir -p ~/.ccache |           test -d ${{ steps.ccache-prepare.outputs.ccachedir }} || mkdir -p ${{ steps.ccache-prepare.outputs.ccachedir }} | ||||||
|           echo "max_size = 250M" > ~/.ccache/ccache.conf |           echo "max_size = 250M" > ${{ steps.ccache-prepare.outputs.ccachedir }}/ccache.conf | ||||||
|           echo "compression = true" >> ~/.ccache/ccache.conf |           echo "compression = true" >> ${{ steps.ccache-prepare.outputs.ccachedir }}/ccache.conf | ||||||
|  |           ccache -p | ||||||
|           ccache -s |           ccache -s | ||||||
|           echo $HOME |           echo $HOME | ||||||
|           cygpath -w $HOME |           cygpath -w $HOME | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue