ci: github: tweaks
This commit is contained in:
		
							parent
							
								
									fe0149ac93
								
							
						
					
					
						commit
						146c1fe03e
					
				
							
								
								
									
										35
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										35
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @ -58,45 +58,38 @@ jobs: | |||||||
| 
 | 
 | ||||||
|     steps: |     steps: | ||||||
| 
 | 
 | ||||||
|     # cf https://github.com/actions/cache/blob/master/examples.md#haskell---cabal |     # cache these directories | ||||||
|     - uses: actions/cache@v1 |     - uses: actions/cache@v1 | ||||||
|       name: Cache ~/.stack |       name: Cache ~/.stack | ||||||
|       with: |       with: | ||||||
|         path: ~/.stack |         path: ~/.stack | ||||||
|         key: ${{ runner.os }}-stack |         key: ${{ runner.os }}-stack | ||||||
|         #key: ${{ runner.os }}-${{ matrix.resolver }}-stack |         #key: ${{ runner.os }}-${{ matrix.resolver }}-stack | ||||||
| 
 |  | ||||||
|     - uses: actions/cache@v1           # https://github.com/marketplace/actions/cache |     - uses: actions/cache@v1           # https://github.com/marketplace/actions/cache | ||||||
|       name: Cache ~/.local/bin |       name: Cache ~/.local/bin | ||||||
|       with: |       with: | ||||||
|         path: ~/.local/bin |         path: ~/.local/bin | ||||||
|         key: ${{ runner.os }}-local-bin |         key: ${{ runner.os }}-local-bin | ||||||
| 
 | 
 | ||||||
|     # - name: Install OS Packages |     # check out the current branch tip | ||||||
|     #   uses: mstksg/get-package@v1   # https://github.com/marketplace/actions/get-package |  | ||||||
|     #   with: |  | ||||||
|     #     apt-get: ${{ matrix.apt-get }} |  | ||||||
|     #     brew: ${{ matrix.brew }} |  | ||||||
| 
 |  | ||||||
|     - uses: actions/checkout@v2       # https://github.com/marketplace/actions/checkout |     - uses: actions/checkout@v2       # https://github.com/marketplace/actions/checkout | ||||||
| 
 | 
 | ||||||
|     # install stack |     # install stack | ||||||
|     # doesn't support windows, https://github.com/mstksg/setup-stack/issues/5 |     - if: matrix.os == 'ubuntu-latest' | ||||||
|     # - name: Setup stack |       run: | | ||||||
|     #   uses: mstksg/setup-stack@v1     # https://github.com/marketplace/actions/setup-stack |         stack --version | ||||||
|     # ubuntu has stack preinstalled |         cabal --version | ||||||
|     # on mac can get it with brew: |  | ||||||
|     - if: matrix.os == 'macos-latest' |     - if: matrix.os == 'macos-latest' | ||||||
|       run: brew install haskell-stack |       run: | | ||||||
|     # on windows can get it this way: |         brew install haskell-stack | ||||||
|  |         stack --version | ||||||
|     - if: matrix.os == 'windows-latest' |     - if: matrix.os == 'windows-latest' | ||||||
|       run: | |       run: | | ||||||
|         set -ex |  | ||||||
|         curl -skL -ostack.zip http://www.stackage.org/stack/windows-x86_64 |         curl -skL -ostack.zip http://www.stackage.org/stack/windows-x86_64 | ||||||
|         7z x stack.zip stack.exe |         7z x stack.zip stack.exe | ||||||
|         stack --version |         stack --version | ||||||
|         set +ex |  | ||||||
| 
 | 
 | ||||||
|  |     # install cabal | ||||||
|     # - name: Setup cabal-install |     # - name: Setup cabal-install | ||||||
|     #   uses: actions/setup-haskell@v1 |     #   uses: actions/setup-haskell@v1 | ||||||
|     #   with: |     #   with: | ||||||
| @ -104,7 +97,13 @@ jobs: | |||||||
|     #     cabal-version: ${{ matrix.plan.cabal-install }} |     #     cabal-version: ${{ matrix.plan.cabal-install }} | ||||||
|     #   if: matrix.plan.build == 'cabal' |     #   if: matrix.plan.build == 'cabal' | ||||||
| 
 | 
 | ||||||
|     - name: Install dependencies |     # - name: Install OS packages | ||||||
|  |     #   uses: mstksg/get-package@v1   # https://github.com/marketplace/actions/get-package | ||||||
|  |     #   with: | ||||||
|  |     #     apt-get: ${{ matrix.apt-get }} | ||||||
|  |     #     brew: ${{ matrix.brew }} | ||||||
|  | 
 | ||||||
|  |     - name: Install haskell dependencies | ||||||
|       run: | |       run: | | ||||||
|         set -ex |         set -ex | ||||||
|         case "$BUILD" in |         case "$BUILD" in | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user