;ci: clean up artifacts, use github platform names
This commit is contained in:
		
							parent
							
								
									6002917ee0
								
							
						
					
					
						commit
						0a16dd87bb
					
				
							
								
								
									
										20
									
								
								.github/workflows/linux.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/linux.yml
									
									
									
									
										vendored
									
									
								
							| @ -193,7 +193,7 @@ jobs: | |||||||
| 
 | 
 | ||||||
|     - name: Build hledger quickly warning free, run unit tests, run doc tests |     - name: Build hledger quickly warning free, run unit tests, run doc tests | ||||||
|       run: | |       run: | | ||||||
|         stack $ARGS build --test --bench --fast --ghc-options=-Werror --no-terminal |         stack $ARGS install --test --bench --fast --ghc-options=-Werror --no-terminal | ||||||
|         # --pedantic --no-run-benchmarks |         # --pedantic --no-run-benchmarks | ||||||
|       env: |       env: | ||||||
|         ARGS: ${{ matrix.plan.args }} |         ARGS: ${{ matrix.plan.args }} | ||||||
| @ -221,25 +221,27 @@ jobs: | |||||||
|       env: |       env: | ||||||
|         ARGS: ${{ matrix.plan.args }} |         ARGS: ${{ matrix.plan.args }} | ||||||
| 
 | 
 | ||||||
|  |     # artifacts: | ||||||
|  | 
 | ||||||
|     - name: Gather executables |     - name: Gather executables | ||||||
|       run: | |       run: | | ||||||
|         mkdir tmp |         mkdir tmp | ||||||
|         cd tmp |         cd tmp | ||||||
|         mkdir hledger |         mkdir hledger | ||||||
|         cd hledger |         cd hledger | ||||||
|         cp `stack $ARGS exec -- which hledger` . |         cp ~/.local/bin/hledger . | ||||||
|         cp `stack $ARGS exec -- which hledger-ui` . |         cp ~/.local/bin/hledger-ui . | ||||||
|         cp `stack $ARGS exec -- which hledger-web` . |         cp ~/.local/bin/hledger-web . | ||||||
| 
 | 
 | ||||||
|     - name: Create executables artifact |     - name: Upload executables artifact | ||||||
|       uses: actions/upload-artifact@v2 |       uses: actions/upload-artifact@v2 | ||||||
|       with: |       with: | ||||||
|         name: hledger-linux |         name: hledger-ubuntu | ||||||
|         path: tmp/hledger |         path: tmp/hledger | ||||||
| 
 | 
 | ||||||
|     # - name: show stuff | 
 | ||||||
|     #   run: | | 
 | ||||||
|     #     if [[ -e ~/.stack ]]; then ls -lFRa ~/.stack; fi | 
 | ||||||
| 
 | 
 | ||||||
|     # - name: show stuff |     # - name: show stuff | ||||||
|     #   run: | |     #   run: | | ||||||
|  | |||||||
							
								
								
									
										14
									
								
								.github/workflows/mac.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								.github/workflows/mac.yml
									
									
									
									
										vendored
									
									
								
							| @ -116,7 +116,7 @@ jobs: | |||||||
| 
 | 
 | ||||||
|     - name: Build hledger and test unit tests, doc tests |     - name: Build hledger and test unit tests, doc tests | ||||||
|       run: | |       run: | | ||||||
|         stack build --test --ghc-options=-Werror |         stack install --test --ghc-options=-Werror | ||||||
|       #  --pedantic |       #  --pedantic | ||||||
| 
 | 
 | ||||||
|     - name: Install shelltestrunner |     - name: Install shelltestrunner | ||||||
| @ -130,18 +130,20 @@ 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 | ||||||
| 
 | 
 | ||||||
|  |     # artifacts: | ||||||
|  | 
 | ||||||
|     - name: Gather executables |     - name: Gather executables | ||||||
|       run: | |       run: | | ||||||
|         mkdir tmp |         mkdir tmp | ||||||
|         cd tmp |         cd tmp | ||||||
|         mkdir hledger |         mkdir hledger | ||||||
|         cd hledger |         cd hledger | ||||||
|         cp `stack exec -- which hledger` . |         cp ~/.local/bin/hledger . | ||||||
|         cp `stack exec -- which hledger-ui` . |         cp ~/.local/bin/hledger-ui . | ||||||
|         cp `stack exec -- which hledger-web` . |         cp ~/.local/bin/hledger-web . | ||||||
| 
 | 
 | ||||||
|     - name: Create executables artifact |     - name: Upload executables artifact | ||||||
|       uses: actions/upload-artifact@v2 |       uses: actions/upload-artifact@v2 | ||||||
|       with: |       with: | ||||||
|         name: hledger-mac |         name: hledger-macos | ||||||
|         path: tmp/hledger |         path: tmp/hledger | ||||||
|  | |||||||
							
								
								
									
										12
									
								
								.github/workflows/windows.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/windows.yml
									
									
									
									
										vendored
									
									
								
							| @ -148,14 +148,7 @@ 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 |     # artifacts: | ||||||
|     #   #cd `stack path --local-bin` |  | ||||||
|     #   run: | |  | ||||||
|     #     cd C:\Users\runneradmin\AppData\Roaming\local\bin\ |  | ||||||
|     #     7z a D:\a\hledger\hledger\hledger.zip hledger.exe hledger-web.exe |  | ||||||
| 
 |  | ||||||
|     # github automatically zips every artifact, though it's not |  | ||||||
|     # apparent in the displayed link text and file size |  | ||||||
| 
 | 
 | ||||||
|     - name: Gather executables |     - name: Gather executables | ||||||
|       run: | |       run: | | ||||||
| @ -169,5 +162,6 @@ jobs: | |||||||
|     - name: Create executables artifact |     - name: Create executables artifact | ||||||
|       uses: actions/upload-artifact@v2 |       uses: actions/upload-artifact@v2 | ||||||
|       with: |       with: | ||||||
|         name: hledger-win |         name: hledger-windows | ||||||
|         path: tmp/hledger |         path: tmp/hledger | ||||||
|  | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user