;ci: work on getting latest stack on all platforms
This commit is contained in:
		
							parent
							
								
									506d521615
								
							
						
					
					
						commit
						484c69f795
					
				
							
								
								
									
										8
									
								
								.github/workflows/linux.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/linux.yml
									
									
									
									
										vendored
									
									
								
							| @ -156,11 +156,11 @@ jobs: | ||||
|     # actions: | ||||
| 
 | ||||
|     - name: Install stack | ||||
|       # curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C $INSTALLDIR '*/stack' | ||||
|       # mkdir -p ~/.local/bin | ||||
|       # export PATH=~/.local/bin:$PATH | ||||
|       # if [[ ! -x ~/.local/bin/stack ]]; then curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi | ||||
|       run: | | ||||
|         mkdir -p ~/.local/bin | ||||
|         export PATH=~/.local/bin:$PATH | ||||
|         curl -sL https://stackage.org/stack/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack | ||||
|         # if [[ ! -x ~/.local/bin/stack ]]; then curl -sL https://stackage.org/stack/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi | ||||
|         $stack --version | ||||
|       env: | ||||
|         stack: ${{ matrix.plan.stack }} | ||||
|  | ||||
							
								
								
									
										11
									
								
								.github/workflows/mac.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.github/workflows/mac.yml
									
									
									
									
										vendored
									
									
								
							| @ -108,11 +108,14 @@ jobs: | ||||
|     # actions: | ||||
| 
 | ||||
|     - name: Install stack | ||||
|       # curl --insecure -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C $INSTALLDIR | ||||
|       env: | ||||
|         stack: ${{ matrix.plan.stack }} | ||||
|       # run: | | ||||
|       #   brew install haskell-stack | ||||
|       #   $stack --version | ||||
|       run: | | ||||
|         brew install haskell-stack | ||||
|         mkdir -p ~/.local/bin | ||||
|         export PATH=~/.local/bin:$PATH | ||||
|         curl -sL https://www.stackage.org/stack/osx-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack | ||||
|         # if [[ ! -x ~/.local/bin/stack ]]; then curl -sL https://www.stackage.org/stack/osx-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi | ||||
|         $stack --version | ||||
| 
 | ||||
|     - name: Install GHC | ||||
|  | ||||
							
								
								
									
										11
									
								
								.github/workflows/windows.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.github/workflows/windows.yml
									
									
									
									
										vendored
									
									
								
							| @ -107,12 +107,23 @@ jobs: | ||||
|     # - name: Add stack local bin to PATH | ||||
|     #   run: echo "::add-path::C:\Users\runneradmin\AppData\Roaming\stack\local\bin" | ||||
| 
 | ||||
|     # - name: Install stack | ||||
|     #   shell: bash | ||||
|     #   run: | | ||||
|     #     mkdir -p ~/.local/bin | ||||
|     #     export PATH=~/.local/bin:$PATH | ||||
|     #     if [[ ! -x ~/.local/bin/stack ]]; then curl -sL https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi | ||||
|     #     $stack --version | ||||
|     #   env: | ||||
|     #     stack: ${{ matrix.plan.stack }} | ||||
| 
 | ||||
|     - name: Install stack | ||||
|       #if: steps.stack-programs-dir.outputs.cache-hit != 'true' | ||||
|       # this step is needed to get stack.exe into PATH, for now | ||||
|       run: | | ||||
|         curl -skL -o stack.zip http://www.stackage.org/stack/windows-x86_64 | ||||
|         7z x stack.zip -oC:\Windows stack.exe | ||||
|         which stack | ||||
|         stack --version | ||||
| 
 | ||||
|     # resolver lts-15.3 to avoid GHC 8.8.3 access violation, https://gitlab.haskell.org/ghc/ghc/issues/17926: | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user