mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	ci: Add skip check to other actions
This commit is contained in:
		
							parent
							
								
									174c7ebf17
								
							
						
					
					
						commit
						cdce505f82
					
				
					 3 changed files with 47 additions and 0 deletions
				
			
		
							
								
								
									
										15
									
								
								.github/workflows/test-docs.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/test-docs.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -6,7 +6,22 @@ on:
 | 
			
		|||
    - main
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  pre_job:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    outputs:
 | 
			
		||||
      should_skip: ${{ steps.skip_check.outputs.should_skip }}
 | 
			
		||||
    steps:
 | 
			
		||||
      - id: skip_check
 | 
			
		||||
        uses: fkirc/skip-duplicate-actions@v5
 | 
			
		||||
        with:
 | 
			
		||||
          # cancel previous builds if a new commit is pushed
 | 
			
		||||
          cancel_others: 'true'
 | 
			
		||||
          # only run on push *or* pull_request, not both
 | 
			
		||||
          concurrent_skipping: 'same_content_newer'
 | 
			
		||||
 | 
			
		||||
  test-docs:
 | 
			
		||||
    needs: pre_job
 | 
			
		||||
    if: needs.pre_job.outputs.should_skip != 'true'
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Install Dependencies
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										16
									
								
								.github/workflows/test-linux.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/test-linux.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -3,7 +3,23 @@ name: Build and run tests (Linux)
 | 
			
		|||
on: [push, pull_request]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  pre_job:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    outputs:
 | 
			
		||||
      should_skip: ${{ steps.skip_check.outputs.should_skip }}
 | 
			
		||||
    steps:
 | 
			
		||||
      - id: skip_check
 | 
			
		||||
        uses: fkirc/skip-duplicate-actions@v5
 | 
			
		||||
        with:
 | 
			
		||||
          paths_ignore: '["**/README.md", "docs/**", "guidelines/**"]'
 | 
			
		||||
          # cancel previous builds if a new commit is pushed
 | 
			
		||||
          cancel_others: 'true'
 | 
			
		||||
          # only run on push *or* pull_request, not both
 | 
			
		||||
          concurrent_skipping: 'same_content_newer'
 | 
			
		||||
 | 
			
		||||
  test-linux:
 | 
			
		||||
    needs: pre_job
 | 
			
		||||
    if: needs.pre_job.outputs.should_skip != 'true'
 | 
			
		||||
    runs-on: ${{ matrix.os.id }}
 | 
			
		||||
    strategy:
 | 
			
		||||
      matrix:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										16
									
								
								.github/workflows/test-macos.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/test-macos.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -3,7 +3,23 @@ name: Build and run tests (macOS)
 | 
			
		|||
on: [push, pull_request]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  pre_job:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    outputs:
 | 
			
		||||
      should_skip: ${{ steps.skip_check.outputs.should_skip }}
 | 
			
		||||
    steps:
 | 
			
		||||
      - id: skip_check
 | 
			
		||||
        uses: fkirc/skip-duplicate-actions@v5
 | 
			
		||||
        with:
 | 
			
		||||
          paths_ignore: '["**/README.md", "docs/**", "guidelines/**"]'
 | 
			
		||||
          # cancel previous builds if a new commit is pushed
 | 
			
		||||
          cancel_others: 'true'
 | 
			
		||||
          # only run on push *or* pull_request, not both
 | 
			
		||||
          concurrent_skipping: 'same_content_newer'
 | 
			
		||||
 | 
			
		||||
  test-macos:
 | 
			
		||||
    needs: pre_job
 | 
			
		||||
    if: needs.pre_job.outputs.should_skip != 'true'
 | 
			
		||||
    runs-on: ${{ matrix.os.id }}
 | 
			
		||||
    strategy:
 | 
			
		||||
      matrix:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue