;ci: linux: notes
(cherry picked from commit 23a7b1a71d5fd23eeda57f1442ea4b9bdf185169)
This commit is contained in:
		
							parent
							
								
									4a48e5f8aa
								
							
						
					
					
						commit
						21ba9cc21e
					
				
							
								
								
									
										34
									
								
								.github/workflows/linux.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										34
									
								
								.github/workflows/linux.yml
									
									
									
									
										vendored
									
									
								
							| @ -197,6 +197,7 @@ jobs: | |||||||
|         stack: ${{ matrix.plan.stack }} |         stack: ${{ matrix.plan.stack }} | ||||||
|       run: | |       run: | | ||||||
|         $stack install --test --bench --force-dirty --ghc-options=-fforce-recomp --ghc-options=-Werror --ghc-options=-split-sections --no-terminal |         $stack install --test --bench --force-dirty --ghc-options=-fforce-recomp --ghc-options=-Werror --ghc-options=-split-sections --no-terminal | ||||||
|  |         # build quicker when tweaking ci: $stack install --ghc-options=-Werror --ghc-options=-split-sections --no-terminal | ||||||
|         # -split-sections shrinks binaries by 30% on average here |         # -split-sections shrinks binaries by 30% on average here | ||||||
|         # --pedantic --no-run-benchmarks |         # --pedantic --no-run-benchmarks | ||||||
| 
 | 
 | ||||||
| @ -227,6 +228,7 @@ jobs: | |||||||
|     # XXX unreliable, and we don't need this for every PR; disable for now |     # XXX unreliable, and we don't need this for every PR; disable for now | ||||||
| 
 | 
 | ||||||
|     - name: Gather executables |     - name: Gather executables | ||||||
|  |       id: exes | ||||||
|       run: | |       run: | | ||||||
|         mkdir tmp |         mkdir tmp | ||||||
|         cd tmp |         cd tmp | ||||||
| @ -235,11 +237,15 @@ jobs: | |||||||
|         cp ~/.local/bin/hledger . |         cp ~/.local/bin/hledger . | ||||||
|         cp ~/.local/bin/hledger-ui . |         cp ~/.local/bin/hledger-ui . | ||||||
|         cp ~/.local/bin/hledger-web . |         cp ~/.local/bin/hledger-web . | ||||||
|  |     # example of setting a context variable, and an attempt to make a nice artifact version suffix. | ||||||
|  |     # But a constant name is easier in some ways. | ||||||
|  |     #   echo "::set-output name=version::$(git branch --show-current | sed 's/-.*//')-$(git rev-parse --short HEAD)" | ||||||
| 
 | 
 | ||||||
|     # XXX intermittent upload failures |     # XXX intermittent upload failures | ||||||
|     - name: Upload executables artifact |     - name: Upload executables artifact | ||||||
|       uses: actions/upload-artifact@v2 |       uses: actions/upload-artifact@v2 | ||||||
|       with: |       with: | ||||||
|  |     #    name: hledger-ubuntu-${{ steps.exes.outputs.version }} | ||||||
|         name: hledger-ubuntu |         name: hledger-ubuntu | ||||||
|         path: tmp/hledger |         path: tmp/hledger | ||||||
| 
 | 
 | ||||||
| @ -251,6 +257,34 @@ jobs: | |||||||
|     #   run: | |     #   run: | | ||||||
|     #     if [[ -e ~/.local/bin ]]; then ls -lFRa ~/.local/bin; fi |     #     if [[ -e ~/.local/bin ]]; then ls -lFRa ~/.local/bin; fi | ||||||
| 
 | 
 | ||||||
|  |     # inspect available context info, per | ||||||
|  |     # https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions. | ||||||
|  |     # sample output: https://github.com/simonmichael/hledger/runs/1619227104 | ||||||
|  |     # - name: Dump GitHub context | ||||||
|  |     #   env: | ||||||
|  |     #     GITHUB_CONTEXT: ${{ toJson(github) }} | ||||||
|  |     #   run: echo "$GITHUB_CONTEXT" | ||||||
|  |     # - name: Dump job context | ||||||
|  |     #   env: | ||||||
|  |     #     JOB_CONTEXT: ${{ toJson(job) }} | ||||||
|  |     #   run: echo "$JOB_CONTEXT" | ||||||
|  |     # - name: Dump steps context | ||||||
|  |     #   env: | ||||||
|  |     #     STEPS_CONTEXT: ${{ toJson(steps) }} | ||||||
|  |     #   run: echo "$STEPS_CONTEXT" | ||||||
|  |     # - name: Dump runner context | ||||||
|  |     #   env: | ||||||
|  |     #     RUNNER_CONTEXT: ${{ toJson(runner) }} | ||||||
|  |     #   run: echo "$RUNNER_CONTEXT" | ||||||
|  |     # - name: Dump strategy context | ||||||
|  |     #   env: | ||||||
|  |     #     STRATEGY_CONTEXT: ${{ toJson(strategy) }} | ||||||
|  |     #   run: echo "$STRATEGY_CONTEXT" | ||||||
|  |     # - name: Dump matrix context | ||||||
|  |     #   env: | ||||||
|  |     #     MATRIX_CONTEXT: ${{ toJson(matrix) }} | ||||||
|  |     #   run: echo "$MATRIX_CONTEXT" | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| # docs: | # docs: | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user