ci: github: fix ~/.stack caching
This commit is contained in:
		
							parent
							
								
									7b39151346
								
							
						
					
					
						commit
						4191190073
					
				
							
								
								
									
										13
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @ -8,7 +8,8 @@ | ||||
| # https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners#supported-runners-and-hardware-resources | ||||
| # https://github.com/actions/cache | ||||
| # https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows | ||||
| 
 | ||||
| # https://github.com/sdras/awesome-actions | ||||
| # http://www.btellez.com/posts/triggering-github-actions-with-webhooks.html | ||||
| 
 | ||||
| name: hledger default CI tests | ||||
| 
 | ||||
| @ -25,7 +26,7 @@ jobs: | ||||
|     strategy: | ||||
|       matrix: | ||||
|         # os runners: https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners#supported-runners-and-hardware-resources | ||||
|         os: [ubuntu-latest, macos-latest]  # not recognised:, windows-latest] | ||||
|         os: [ubuntu-latest, macos-latest]  # , windows-latest] # why not recognised ??  | ||||
|         # use this to specify what resolvers and ghc to use | ||||
|         plan: | ||||
|         # - { build: stack, resolver: "--resolver lts-9"  }    # ghc-8.0.2 | ||||
| @ -59,11 +60,11 @@ jobs: | ||||
| 
 | ||||
|     # cf https://github.com/actions/cache/blob/master/examples.md#haskell---cabal | ||||
|     - uses: actions/cache@v1 | ||||
|       name: Cache ~/.stack-work | ||||
|       name: Cache ~/.stack | ||||
|       with: | ||||
|         path: ~/.stack-work | ||||
|         key: ${{ runner.os }}-stack-work | ||||
|         #key: ${{ runner.os }}-${{ matrix.resolver }}-stack-work | ||||
|         path: ~/.stack | ||||
|         key: ${{ runner.os }}-stack | ||||
|         #key: ${{ runner.os }}-${{ matrix.resolver }}-stack | ||||
| 
 | ||||
|     - uses: actions/cache@v1 | ||||
|       name: Cache ~/.local/bin | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user