ci: github: try adding mac/windows, caching
This commit is contained in:
		
							parent
							
								
									d97ec1640b
								
							
						
					
					
						commit
						4693212bcd
					
				
							
								
								
									
										17
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @ -49,7 +49,7 @@ jobs: | |||||||
|   build: |   build: | ||||||
|     strategy: |     strategy: | ||||||
|       matrix: |       matrix: | ||||||
|         os: [ubuntu-latest] #, macOS-latest] |         os: [ubuntu-latest, windows-latest, macos-latest] | ||||||
|         # use this to specify what resolvers and ghc to use |         # use this to specify what resolvers and ghc to use | ||||||
|         plan: |         plan: | ||||||
|         # - { build: stack, resolver: "--resolver lts-9"  }    # ghc-8.0.2 |         # - { build: stack, resolver: "--resolver lts-9"  }    # ghc-8.0.2 | ||||||
| @ -78,7 +78,22 @@ jobs: | |||||||
|         #     build: cabal |         #     build: cabal | ||||||
| 
 | 
 | ||||||
|     runs-on: ${{ matrix.os }} |     runs-on: ${{ matrix.os }} | ||||||
|  | 
 | ||||||
|     steps: |     steps: | ||||||
|  | 
 | ||||||
|  |     # cf https://github.com/actions/cache/blob/master/examples.md#haskell---cabal | ||||||
|  |     - uses: actions/cache@v1 | ||||||
|  |       name: Cache ~/.stack-work | ||||||
|  |       with: | ||||||
|  |         path: ~/.stack-work | ||||||
|  |         key: ${{ runner.os }}-${{ matrix.ghc }}-stack-work | ||||||
|  | 
 | ||||||
|  |     - uses: actions/cache@v1 | ||||||
|  |       name: Cache ~/.local/bin | ||||||
|  |       with: | ||||||
|  |         path: ~/.stack-work | ||||||
|  |         key: ${{ runner.os }}-${{ matrix.ghc }}-local-bin | ||||||
|  | 
 | ||||||
|     - name: Install OS Packages |     - name: Install OS Packages | ||||||
|       uses: mstksg/get-package@v1 |       uses: mstksg/get-package@v1 | ||||||
|       with: |       with: | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user