;ci: github: windows: tweak caching
This commit is contained in:
		
							parent
							
								
									5b2238696a
								
							
						
					
					
						commit
						7db7e69a1e
					
				
							
								
								
									
										20
									
								
								.github/workflows/windows-nightly.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/windows-nightly.yml
									
									
									
									
										vendored
									
									
								
							| @ -113,8 +113,8 @@ jobs: | |||||||
|     #   run: echo "::add-path::C:\Users\runneradmin\AppData\Roaming\stack\local\bin" |     #   run: echo "::add-path::C:\Users\runneradmin\AppData\Roaming\stack\local\bin" | ||||||
| 
 | 
 | ||||||
|     - name: Install stack |     - name: Install stack | ||||||
|       if: steps.stack-programs-dir.outputs.cache-hit != 'true' |       #if: steps.stack-programs-dir.outputs.cache-hit != 'true' | ||||||
|       # need this step to install stack.exe into PATH for now |       # this step is needed to get stack.exe into PATH, for now | ||||||
|       run: | |       run: | | ||||||
|         curl -skL -o stack.zip http://www.stackage.org/stack/windows-x86_64 |         curl -skL -o stack.zip http://www.stackage.org/stack/windows-x86_64 | ||||||
|         7z x stack.zip -oC:\Windows stack.exe |         7z x stack.zip -oC:\Windows stack.exe | ||||||
| @ -122,8 +122,8 @@ jobs: | |||||||
| 
 | 
 | ||||||
|     - name: Install GHC |     - name: Install GHC | ||||||
|       if: steps.stack-programs-dir.outputs.cache-hit != 'true' |       if: steps.stack-programs-dir.outputs.cache-hit != 'true' | ||||||
|  |       # set PATH=C:\Users\runneradmin\AppData\Local\Programs\stack\local\bin;%PATH% | ||||||
|       run: | |       run: | | ||||||
|         set PATH=C:\Users\runneradmin\AppData\Local\Programs\stack\local\bin;%PATH% |  | ||||||
|         stack --no-terminal setup --install-ghc |         stack --no-terminal setup --install-ghc | ||||||
| 
 | 
 | ||||||
|     # - name: Install shelltestrunner |     # - name: Install shelltestrunner | ||||||
| @ -133,18 +133,16 @@ jobs: | |||||||
|     - name: Install haskell deps |     - name: Install haskell deps | ||||||
|       if: steps.stack-global-package-db.outputs.cache-hit != 'true' |       if: steps.stack-global-package-db.outputs.cache-hit != 'true' | ||||||
|       run: | |       run: | | ||||||
|         set PATH=C:\Users\runneradmin\AppData\Local\Programs\stack\local\bin;%PATH% |  | ||||||
|         stack --no-terminal build --only-dependencies |         stack --no-terminal build --only-dependencies | ||||||
| 
 | 
 | ||||||
|     - name: Build hledger |     - name: Build hledger | ||||||
|       run: | |       run: | | ||||||
|         set PATH=C:\Users\runneradmin\AppData\Local\Programs\stack\local\bin;%PATH% |  | ||||||
|         stack --no-terminal install --ghc-options=-Werror |         stack --no-terminal install --ghc-options=-Werror | ||||||
| 
 | 
 | ||||||
|     # run hledger-lib/hledger functional tests, skipping the ones for addons |     # run hledger-lib/hledger functional tests, skipping the ones for addons | ||||||
|     #- COLUMNS=80 stack exec -- shelltest --execdir -j16 tests -x /bin -x /addons |     #- COLUMNS=80 stack exec -- shelltest --execdir -j16 tests -x /bin -x /addons | ||||||
| 
 | 
 | ||||||
|     - name: Zip exes |     - name: Zip executables | ||||||
|       #cd `stack path --local-bin` |       #cd `stack path --local-bin` | ||||||
|       run: | |       run: | | ||||||
|         cd C:\Users\runneradmin\AppData\Roaming\local\bin\ |         cd C:\Users\runneradmin\AppData\Roaming\local\bin\ | ||||||
| @ -155,13 +153,3 @@ jobs: | |||||||
|       with: |       with: | ||||||
|         name: hledger.zip |         name: hledger.zip | ||||||
|         path: hledger.zip |         path: hledger.zip | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| # - name: Configure |  | ||||||
| #   if: startsWith(matrix.name, 'windows') |  | ||||||
| #   run: | |  | ||||||
| #     set PATH=C:\ProgramData\scoop\shims;%PATH% |  | ||||||
| #     call "${{ matrix.vcvarsall }}" x64 # Sets a whole bunch of environment variables used by the next call to cmake. |  | ||||||
| #     cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug ... # Same as above (duplicated) |  | ||||||
| 
 |  | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user