ci: sync push/pull, check both with GHC 8.6 to satisfy master
This commit is contained in:
		
							parent
							
								
									8ad7dc41b0
								
							
						
					
					
						commit
						1c3dd50e5b
					
				
							
								
								
									
										24
									
								
								.github/workflows/pull.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								.github/workflows/pull.yml
									
									
									
									
										vendored
									
									
								
							| @ -1,15 +1,19 @@ | |||||||
| # Runs on notable pull requests against master, and weekly on master. | # Runs after notable pushes to pull requests against master. | ||||||
|  | # master is configured to require one or more status checks corresponding to | ||||||
|  | # enabled matrix plans below (shown in github UI as "build (810, ..."). | ||||||
|  | # So those must pass before the pull request can be merged. | ||||||
|  | # | ||||||
| # Runs unit/doc/functional/haddock/bench tests and produces optimised dynamic x64 linux binaries, | # Runs unit/doc/functional/haddock/bench tests and produces optimised dynamic x64 linux binaries, | ||||||
| # using the oldest supported GHC version (8.6). | # using the GHC version(s) enabled below. | ||||||
| 
 | # | ||||||
| # This was the original workflow, and may have the most detailed notes. | # This was our first github workflow, and may have the most detailed notes. | ||||||
| 
 | 
 | ||||||
| name: pull request CI | name: pull request CI | ||||||
| 
 | 
 | ||||||
| on: | on: | ||||||
|   # Scheduled workflows run on the latest commit on the default or base branch. (master) |   # Scheduled workflows run on the latest commit on the default or base branch. (master) | ||||||
|   schedule: |   # schedule: | ||||||
|   - cron: "0 07 * * 0"  # sunday midnight pacific |   # - cron: "0 07 * * 0"  # sunday midnight pacific | ||||||
| 
 | 
 | ||||||
|   pull_request: |   pull_request: | ||||||
|     branches: [ master ] |     branches: [ master ] | ||||||
| @ -35,6 +39,7 @@ on: | |||||||
|       - '!**.info' |       - '!**.info' | ||||||
|       - '!**.txt' |       - '!**.txt' | ||||||
| 
 | 
 | ||||||
|  |   # also allow this workflow to be triggered manually | ||||||
|   workflow_dispatch: |   workflow_dispatch: | ||||||
| 
 | 
 | ||||||
| jobs: | jobs: | ||||||
| @ -43,11 +48,12 @@ jobs: | |||||||
|     strategy: |     strategy: | ||||||
|       fail-fast: false |       fail-fast: false | ||||||
|       matrix: |       matrix: | ||||||
|         plan: |         plan:  # at least the check(s) required by master should be enabled | ||||||
|         - { ghc: "86"  , stack: "stack --stack-yaml=stack8.6.yaml" } |         - { ghc: "86"  , stack: "stack --stack-yaml=stack8.6.yaml" } | ||||||
|         # - { ghc: "88"  , stack: "stack --stack-yaml=stack8.8.yaml" } |         # - { ghc: "88" , stack: "stack --stack-yaml=stack8.8.yaml" } | ||||||
|         # - { ghc: "810" , stack: "stack --stack-yaml=stack8.10.yaml" } |         # - { ghc: "810", stack: "stack --stack-yaml=stack8.10.yaml" } | ||||||
|         # - { ghc: "90" , stack: "stack --stack-yaml=stack.yaml" } |         # - { ghc: "90" , stack: "stack --stack-yaml=stack.yaml" } | ||||||
|  |         # - { ghc: "92" , stack: "stack --stack-yaml=stack9.2.yaml" } | ||||||
| 
 | 
 | ||||||
|     steps: |     steps: | ||||||
| 
 | 
 | ||||||
|  | |||||||
							
								
								
									
										25
									
								
								.github/workflows/push.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										25
									
								
								.github/workflows/push.yml
									
									
									
									
										vendored
									
									
								
							| @ -1,11 +1,13 @@ | |||||||
| # Runs after notable pushes to the branches listed below. Failure does not prevent the push. | # Runs after notable pushes to the branches listed below. | ||||||
| # master is configured to require a successful CI check, which should be one of the enabled | # master is configured to require one or more status checks corresponding to | ||||||
| # matrix plans below (it is shown in github UI as "build (810, ..." eg). So the process is: | # enabled matrix plans below (shown in github UI as "build (810, ..."). | ||||||
|  | # So the push process is: | ||||||
| # 1. push new commits to a personal test branch listed below (simon) | # 1. push new commits to a personal test branch listed below (simon) | ||||||
| # 2. wait for this check to succeed, then | # 2. this workflow runs, wait for it to succeed, then | ||||||
| # 3. push the same commits to master, which will now allow it. | # 3. push the same commits to master, which will now allow it. | ||||||
| 
 | # | ||||||
| # Builds unoptimised on x64 linux and runs functional tests, using the GHC version(s) enabled below. | # Builds unoptimised on x64 linux and runs functional tests, | ||||||
|  | # using the GHC version(s) enabled below. | ||||||
| 
 | 
 | ||||||
| name: push CI | name: push CI | ||||||
| 
 | 
 | ||||||
| @ -38,18 +40,21 @@ on: | |||||||
|       - '!**.info' |       - '!**.info' | ||||||
|       - '!**.txt' |       - '!**.txt' | ||||||
| 
 | 
 | ||||||
|  |   # also allow this workflow to be triggered manually | ||||||
|  |   workflow_dispatch: | ||||||
|  | 
 | ||||||
| jobs: | jobs: | ||||||
|   build: |   build: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     strategy: |     strategy: | ||||||
|       fail-fast: false |       fail-fast: false | ||||||
|       matrix: |       matrix: | ||||||
|         plan: |         plan:  # at least the check(s) required by master should be enabled | ||||||
|         # - { ghc: "86" , stack: "stack --stack-yaml=stack8.6.yaml" } |         - { ghc: "86" , stack: "stack --stack-yaml=stack8.6.yaml" } | ||||||
|         # - { ghc: "88" , stack: "stack --stack-yaml=stack8.8.yaml" } |         # - { ghc: "88" , stack: "stack --stack-yaml=stack8.8.yaml" } | ||||||
|         - { ghc: "810"  , stack: "stack --stack-yaml=stack8.10.yaml" } |         # - { ghc: "810", stack: "stack --stack-yaml=stack8.10.yaml" } | ||||||
|         # - { ghc: "90" , stack: "stack --stack-yaml=stack.yaml" } |         # - { ghc: "90" , stack: "stack --stack-yaml=stack.yaml" } | ||||||
|         # - { ghc: "92"  , stack: "stack --stack-yaml=stack9.2.yaml" } |         # - { ghc: "92" , stack: "stack --stack-yaml=stack9.2.yaml" } | ||||||
| 
 | 
 | ||||||
|     steps: |     steps: | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user