mirror of
				https://github.com/optim-enterprises-bv/openwrt-ipq.git
				synced 2025-10-31 10:18:28 +00:00 
			
		
		
		
	CI: build: split cache ccache in separate restore and save jobs
Split caching ccache in separate restore and save jobs to always refresh the ccache across different runs. Currently if a key is restored, cache is not saved resulting in a less useful ccache that benefits from multiple runs. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
		
							
								
								
									
										11
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @@ -247,8 +247,9 @@ jobs: | ||||
|           ./scripts/feeds update -a | ||||
|           ./scripts/feeds install -a | ||||
|  | ||||
|       - name: Cache ccache | ||||
|         uses: actions/cache@v3 | ||||
|       - name: Restore ccache cache | ||||
|         id: restore-ccache-cache | ||||
|         uses: actions/cache/restore@v3 | ||||
|         with: | ||||
|           path: openwrt/.ccache | ||||
|           key: ccache-kernel-${{ inputs.target }}/${{ inputs.subtarget }}-${{ hashFiles('openwrt/include/kernel-**') }} | ||||
| @@ -474,6 +475,12 @@ jobs: | ||||
|           name: ${{ inputs.target }}-${{ inputs.subtarget }}-logs | ||||
|           path: "openwrt/logs" | ||||
|  | ||||
|       - name: Save ccache cache | ||||
|         uses: actions/cache/save@v3 | ||||
|         with: | ||||
|           path: openwrt/.ccache | ||||
|           key: ${{ steps.restore-ccache-cache.outputs.cache-primary-key }} | ||||
|  | ||||
|       - name: Find external toolchain name | ||||
|         id: get-toolchain-name | ||||
|         if: inputs.upload_external_toolchain == true | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Christian Marangi
					Christian Marangi