mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 15:48:39 +08:00 
			
		
		
		
	Support macOS
This commit is contained in:
		
							parent
							
								
									315c827b9b
								
							
						
					
					
						commit
						786d2db421
					
				| 
						 | 
					@ -125,9 +125,18 @@ uses: actions/cache@preview
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```yaml
 | 
					```yaml
 | 
				
			||||||
- uses: actions/cache@preview
 | 
					- uses: actions/cache@preview
 | 
				
			||||||
 | 
					  if: startsWith(runner.os, 'Linux')
 | 
				
			||||||
  with:
 | 
					  with:
 | 
				
			||||||
    path: ~/.cache/pip
 | 
					    path: ~/.cache/pip
 | 
				
			||||||
    key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
 | 
					    key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
 | 
				
			||||||
    restore-keys: |
 | 
					    restore-keys: |
 | 
				
			||||||
      ${{ runner.os }}-pip-
 | 
					      ${{ runner.os }}-pip-
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- uses: actions/cache@preview
 | 
				
			||||||
 | 
					  if: startsWith(runner.os, 'macOS')
 | 
				
			||||||
 | 
					  with:
 | 
				
			||||||
 | 
					    path: ~/Library/Caches/pip
 | 
				
			||||||
 | 
					    key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
 | 
				
			||||||
 | 
					    restore-keys: |
 | 
				
			||||||
 | 
					      ${{ runner.os }}-pip-
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user