mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Fix PlatformIO cache in CI by adding platformio.ini hash to cache key (#9411)
This commit is contained in:
		
							
								
								
									
										18
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -349,28 +349,14 @@ jobs: | |||||||
|         uses: actions/cache@v4.2.3 |         uses: actions/cache@v4.2.3 | ||||||
|         with: |         with: | ||||||
|           path: ~/.platformio |           path: ~/.platformio | ||||||
|           key: platformio-${{ matrix.pio_cache_key }} |           key: platformio-${{ matrix.pio_cache_key }}-${{ hashFiles('platformio.ini') }} | ||||||
|  |  | ||||||
|       - name: Cache platformio |       - name: Cache platformio | ||||||
|         if: github.ref != 'refs/heads/dev' |         if: github.ref != 'refs/heads/dev' | ||||||
|         uses: actions/cache/restore@v4.2.3 |         uses: actions/cache/restore@v4.2.3 | ||||||
|         with: |         with: | ||||||
|           path: ~/.platformio |           path: ~/.platformio | ||||||
|           key: platformio-${{ matrix.pio_cache_key }} |           key: platformio-${{ matrix.pio_cache_key }}-${{ hashFiles('platformio.ini') }} | ||||||
|  |  | ||||||
|       - name: Cache platformio libdeps |  | ||||||
|         if: github.ref == 'refs/heads/dev' |  | ||||||
|         uses: actions/cache@v4.2.3 |  | ||||||
|         with: |  | ||||||
|           path: .pio/libdeps |  | ||||||
|           key: pio-libdeps-${{ matrix.pio_cache_key }}-${{ hashFiles('platformio.ini') }} |  | ||||||
|  |  | ||||||
|       - name: Cache platformio libdeps |  | ||||||
|         if: github.ref != 'refs/heads/dev' |  | ||||||
|         uses: actions/cache/restore@v4.2.3 |  | ||||||
|         with: |  | ||||||
|           path: .pio/libdeps |  | ||||||
|           key: pio-libdeps-${{ matrix.pio_cache_key }}-${{ hashFiles('platformio.ini') }} |  | ||||||
|  |  | ||||||
|       - name: Register problem matchers |       - name: Register problem matchers | ||||||
|         run: | |         run: | | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user