;ci: windows: avoid double zipping the artifact
This commit is contained in:
		
							parent
							
								
									d23c3e2214
								
							
						
					
					
						commit
						4529d9e804
					
				
							
								
								
									
										29
									
								
								.github/workflows/windows.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										29
									
								
								.github/workflows/windows.yml
									
									
									
									
										vendored
									
									
								
							| @ -111,6 +111,8 @@ jobs: | |||||||
|         7z x stack.zip -oC:\Windows stack.exe |         7z x stack.zip -oC:\Windows stack.exe | ||||||
|         stack --version |         stack --version | ||||||
| 
 | 
 | ||||||
|  |     # resolver lts-15.3 to avoid GHC 8.8.3 access violation, https://gitlab.haskell.org/ghc/ghc/issues/17926: | ||||||
|  | 
 | ||||||
|     - 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% |       # set PATH=C:\Users\runneradmin\AppData\Local\Programs\stack\local\bin;%PATH% | ||||||
| @ -135,15 +137,26 @@ jobs: | |||||||
|     ## - export PATH=~/.local/bin:$PATH |     ## - export PATH=~/.local/bin:$PATH | ||||||
|     #- 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 executables |     # - 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\ | ||||||
|         7z a D:\a\hledger\hledger\hledger.zip hledger.exe hledger-web.exe |     #     7z a D:\a\hledger\hledger\hledger.zip hledger.exe hledger-web.exe | ||||||
| 
 | 
 | ||||||
|     - name: Upload zip file |     # github automatically zips every artifact, though it's not | ||||||
|  |     # apparent in the displayed link text and file size | ||||||
|  | 
 | ||||||
|  |     - name: Gather executables | ||||||
|  |       run: | | ||||||
|  |         mkdir tmp | ||||||
|  |         cd tmp | ||||||
|  |         mkdir hledger | ||||||
|  |         cd hledger | ||||||
|  |         copy C:\Users\runneradmin\AppData\Roaming\local\bin\hledger.exe . | ||||||
|  |         copy C:\Users\runneradmin\AppData\Roaming\local\bin\hledger-web.exe . | ||||||
|  |               | ||||||
|  |     - name: Create executables artifact | ||||||
|       uses: actions/upload-artifact@v1 |       uses: actions/upload-artifact@v1 | ||||||
|       with: |       with: | ||||||
|         name: hledger.zip |         name: hledger.zip | ||||||
|         path: hledger.zip |         path: tmp/hledger | ||||||
| 
 |  | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user