;ci: github: linux: use smarter caching as in windows workflow
This commit is contained in:
		
							parent
							
								
									a88d9efdf5
								
							
						
					
					
						commit
						8863ac5fdf
					
				
							
								
								
									
										39
									
								
								.github/workflows/linux-nightly.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										39
									
								
								.github/workflows/linux-nightly.yml
									
									
									
									
										vendored
									
									
								
							| @ -84,50 +84,67 @@ jobs: | ||||
| 
 | ||||
|     steps: | ||||
| 
 | ||||
|     # cached things | ||||
|     # declare/restore cached things | ||||
| 
 | ||||
|     - name: Cache ~/.stack | ||||
|     - name: Cache stack global package db | ||||
|       id:   stack-global | ||||
|       uses: actions/cache@v1 | ||||
|       with: | ||||
|         path: ~/.stack | ||||
|         key: ${{ runner.os }}-stack | ||||
|         #key: ${{ runner.os }}-${{ matrix.resolver }}-stack | ||||
|         key:          ${{ runner.os }}-stack-global-${{ hashFiles('**.yaml') }} | ||||
|         restore-keys: ${{ runner.os }}-stack-global | ||||
| 
 | ||||
|     - name: Cache ~/.local/bin | ||||
|     - name: show stuff | ||||
|       run: | | ||||
|         ls -lFRa ~/.stack | ||||
| 
 | ||||
|     - name: Cache stack-installed programs in ~/.local/bin | ||||
|       id:   stack-programs | ||||
|       uses: actions/cache@v1 | ||||
|       with: | ||||
|         path: ~/.local/bin | ||||
|         key: ${{ runner.os }}-local-bin | ||||
|         key:          ${{ runner.os }}-stack-programs-${{ hashFiles('**.yaml') }} | ||||
|         restore-keys: ${{ runner.os }}-stack-programs | ||||
| 
 | ||||
|     - name: show stuff | ||||
|       run: | | ||||
|         ls -lFRa ~/.local/bin | ||||
| 
 | ||||
|     # stack's local package dbs for the project and each package | ||||
|     - name: Cache .stack-work | ||||
|       uses: actions/cache@v1 | ||||
|       with: | ||||
|         path: .stack-work | ||||
|         key: ${{ runner.os }}-stack-work | ||||
|         key:          ${{ runner.os }}-stack-work-${{ hashFiles('**.yaml') }} | ||||
|         restore-keys: ${{ runner.os }}-stack-work | ||||
| 
 | ||||
|     - name: Cache hledger-lib/.stack-work | ||||
|       uses: actions/cache@v1 | ||||
|       with: | ||||
|         path: hledger-lib/.stack-work | ||||
|         key: ${{ runner.os }}-hledger-lib-stack-work | ||||
|         key:          ${{ runner.os }}-hledger-lib-stack-work-${{ hashFiles('hledger-lib/package.yaml') }} | ||||
|         restore-keys: ${{ runner.os }}-hledger-lib-stack-work | ||||
| 
 | ||||
|     - name: Cache hledger/.stack-work | ||||
|       uses: actions/cache@v1 | ||||
|       with: | ||||
|         path: hledger/.stack-work | ||||
|         key: ${{ runner.os }}-hledger-stack-work | ||||
|         key:          ${{ runner.os }}-hledger-stack-work-${{ hashFiles('hledger/package.yaml') }} | ||||
|         restore-keys: ${{ runner.os }}-hledger-stack-work | ||||
| 
 | ||||
|     - name: Cache hledger-ui/.stack-work | ||||
|       uses: actions/cache@v1 | ||||
|       with: | ||||
|         path: hledger-ui/.stack-work | ||||
|         key: ${{ runner.os }}-hledger-ui-stack-work | ||||
|         key:          ${{ runner.os }}-hledger-ui-stack-work-${{ hashFiles('hledger-ui/package.yaml') }} | ||||
|         restore-keys: ${{ runner.os }}-hledger-ui-stack-work | ||||
| 
 | ||||
|     - name: Cache hledger-web/.stack-work | ||||
|       uses: actions/cache@v1 | ||||
|       with: | ||||
|         path: hledger-web/.stack-work | ||||
|         key: ${{ runner.os }}-hledger-web-stack-work | ||||
|         key:          ${{ runner.os }}-hledger-web-stack-work-${{ hashFiles('hledger-web/package.yaml') }} | ||||
|         restore-keys: ${{ runner.os }}-hledger-web-stack-work | ||||
| 
 | ||||
|     # actions | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user