mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 15:48:39 +08:00 
			
		
		
		
	Fix cabal store path for gh-action Ubuntu
This commit is contained in:
		
							parent
							
								
									04f198bf0b
								
							
						
					
					
						commit
						b8dd3ecee2
					
				| 
						 | 
				
			
			@ -223,15 +223,15 @@ steps:
 | 
			
		|||
 | 
			
		||||
## Haskell - Cabal
 | 
			
		||||
 | 
			
		||||
We cache the elements of the Cabal store separately, as the entirety of `~/.cabal` can grow very large for projects with many dependencies.
 | 
			
		||||
We cache the elements of the Cabal store.
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
- name: Cache ~/.cabal/packages, ~/.cabal/store and dist-newstyle
 | 
			
		||||
  uses: actions/cache@v3
 | 
			
		||||
  with:
 | 
			
		||||
    path: |
 | 
			
		||||
      ~/.cabal/packages
 | 
			
		||||
      ~/.cabal/store
 | 
			
		||||
      ~/.cache/cabal/packages
 | 
			
		||||
      ~/.local/state/cabal
 | 
			
		||||
      dist-newstyle
 | 
			
		||||
    key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal', '**/cabal.project', '**/cabal.project.freeze') }}
 | 
			
		||||
    restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user