mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	[github] Only save platformio cache for dev branch (#6711)
This commit is contained in:
		
							
								
								
									
										12
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -364,12 +364,20 @@ jobs: | |||||||
|         with: |         with: | ||||||
|           python-version: ${{ env.DEFAULT_PYTHON }} |           python-version: ${{ env.DEFAULT_PYTHON }} | ||||||
|           cache-key: ${{ needs.common.outputs.cache-key }} |           cache-key: ${{ needs.common.outputs.cache-key }} | ||||||
|  |  | ||||||
|       - name: Cache platformio |       - name: Cache platformio | ||||||
|  |         if: github.ref == 'refs/heads/dev' | ||||||
|         uses: actions/cache@v4.0.2 |         uses: actions/cache@v4.0.2 | ||||||
|         with: |         with: | ||||||
|           path: ~/.platformio |           path: ~/.platformio | ||||||
|           # yamllint disable-line rule:line-length |           key: platformio-${{ matrix.pio_cache_key }} | ||||||
|           key: platformio-${{ matrix.pio_cache_key }}-${{ hashFiles('platformio.ini') }} |  | ||||||
|  |       - name: Cache platformio | ||||||
|  |         if: github.ref != 'refs/heads/dev' | ||||||
|  |         uses: actions/cache/restore@v4.0.2 | ||||||
|  |         with: | ||||||
|  |           path: ~/.platformio | ||||||
|  |           key: platformio-${{ matrix.pio_cache_key }} | ||||||
|  |  | ||||||
|       - name: Install clang-tidy |       - name: Install clang-tidy | ||||||
|         run: sudo apt-get install clang-tidy-14 |         run: sudo apt-get install clang-tidy-14 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user