ci: github: that worked, try all os's again
This commit is contained in:
		
							parent
							
								
									e02d711df1
								
							
						
					
					
						commit
						fe0149ac93
					
				
							
								
								
									
										23
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @ -11,7 +11,7 @@ | |||||||
| # https://github.com/sdras/awesome-actions | # https://github.com/sdras/awesome-actions | ||||||
| # http://www.btellez.com/posts/triggering-github-actions-with-webhooks.html | # http://www.btellez.com/posts/triggering-github-actions-with-webhooks.html | ||||||
| 
 | 
 | ||||||
| name: hledger default CI tests | name: hledger CI | ||||||
| 
 | 
 | ||||||
| on: | on: | ||||||
|   push: |   push: | ||||||
| @ -26,8 +26,7 @@ jobs: | |||||||
|     strategy: |     strategy: | ||||||
|       matrix: |       matrix: | ||||||
|         # os runners: https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners#supported-runners-and-hardware-resources |         # 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]  # , windows-latest] # why not recognised ??  |         os: [ubuntu-latest, macos-latest, windows-latest] | ||||||
|         os: [windows-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 | ||||||
| @ -81,8 +80,22 @@ jobs: | |||||||
| 
 | 
 | ||||||
|     - uses: actions/checkout@v2       # https://github.com/marketplace/actions/checkout |     - uses: actions/checkout@v2       # https://github.com/marketplace/actions/checkout | ||||||
| 
 | 
 | ||||||
|     - name: Setup stack |     # install stack | ||||||
|       uses: mstksg/setup-stack@v1     # https://github.com/marketplace/actions/setup-stack |     # doesn't support windows, https://github.com/mstksg/setup-stack/issues/5 | ||||||
|  |     # - name: Setup stack | ||||||
|  |     #   uses: mstksg/setup-stack@v1     # https://github.com/marketplace/actions/setup-stack | ||||||
|  |     # ubuntu has stack preinstalled | ||||||
|  |     # on mac can get it with brew: | ||||||
|  |     - if: matrix.os == 'macos-latest' | ||||||
|  |       run: brew install haskell-stack | ||||||
|  |     # on windows can get it this way: | ||||||
|  |     - if: matrix.os == 'windows-latest' | ||||||
|  |       run: | | ||||||
|  |         set -ex | ||||||
|  |         curl -skL -ostack.zip http://www.stackage.org/stack/windows-x86_64 | ||||||
|  |         7z x stack.zip stack.exe | ||||||
|  |         stack --version | ||||||
|  |         set +ex | ||||||
| 
 | 
 | ||||||
|     # - name: Setup cabal-install |     # - name: Setup cabal-install | ||||||
|     #   uses: actions/setup-haskell@v1 |     #   uses: actions/setup-haskell@v1 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user