mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	ci: add runner image version to cache key
This will ensure the cache isn't used when an image upgrade changes the compiler version, causing the build to fail.
This commit is contained in:
		
							
								
								
									
										6
									
								
								.github/actions/cache/action.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/actions/cache/action.yml
									
									
									
									
										vendored
									
									
								
							| @@ -10,6 +10,10 @@ runs: | |||||||
|       run: echo "CACHE_KEY=$CACHE_KEY-${{ join(matrix.*, '-') }}" >> $GITHUB_ENV |       run: echo "CACHE_KEY=$CACHE_KEY-${{ join(matrix.*, '-') }}" >> $GITHUB_ENV | ||||||
|       shell: bash |       shell: bash | ||||||
|  |  | ||||||
|  |     - id: image | ||||||
|  |       run: echo "version=$ImageVersion" >> $GITHUB_OUTPUT | ||||||
|  |       shell: bash | ||||||
|  |  | ||||||
|     # Avoid using '**/CMakeLists.txt' (or any pattern starting with '**/') even |     # Avoid using '**/CMakeLists.txt' (or any pattern starting with '**/') even | ||||||
|     # if it makes the expression below simpler. hashFiles() has a timer that |     # if it makes the expression below simpler. hashFiles() has a timer that | ||||||
|     # will fail the job if it times out, which can happen if there are too many |     # will fail the job if it times out, which can happen if there are too many | ||||||
| @@ -17,6 +21,6 @@ runs: | |||||||
|     - uses: actions/cache@v3 |     - uses: actions/cache@v3 | ||||||
|       with: |       with: | ||||||
|         path: .deps |         path: .deps | ||||||
|         key: ${{ env.CACHE_KEY }}-${{ hashFiles('cmake**', |         key: ${{ env.CACHE_KEY }}-${{ steps.image.outputs.version }}-${{ hashFiles('cmake**', | ||||||
|           '.github/workflows/test.yml', 'CMakeLists.txt', |           '.github/workflows/test.yml', 'CMakeLists.txt', | ||||||
|           'runtime/CMakeLists.txt', 'src/nvim/**/CMakeLists.txt') }} |           'runtime/CMakeLists.txt', 'src/nvim/**/CMakeLists.txt') }} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 dundargoc
					dundargoc