mirror of
				https://github.com/YosysHQ/sby.git
				synced 2025-11-04 06:39:11 +00:00 
			
		
		
		
	
						commit
						415f404513
					
				
					 1 changed files with 47 additions and 5 deletions
				
			
		
							
								
								
									
										52
									
								
								.github/workflows/ci.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										52
									
								
								.github/workflows/ci.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -1,14 +1,56 @@
 | 
				
			||||||
name: ci
 | 
					name: ci
 | 
				
			||||||
on: [push, pull_request]
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					  pull_request:
 | 
				
			||||||
 | 
					  schedule:
 | 
				
			||||||
 | 
					    - cron: '30 0 * * *'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  build:
 | 
					  build_oss:
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v4
 | 
					      - name: Checkout SBY
 | 
				
			||||||
      - uses: YosysHQ/setup-oss-cad-suite@v3
 | 
					        uses: actions/checkout@v4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Install oss-cad-suite
 | 
				
			||||||
 | 
					        uses: YosysHQ/setup-oss-cad-suite@v3
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          github-token: ${{ secrets.GITHUB_TOKEN }}
 | 
					          github-token: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
      - name: Run checks
 | 
					      - name: Run SBY tests
 | 
				
			||||||
        run: pip install xmlschema && make ci
 | 
					        run: pip install xmlschema && make ci
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  build_verific:
 | 
				
			||||||
 | 
					    runs-on: [self-hosted, linux, x64]
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - name: Checkout SBY
 | 
				
			||||||
 | 
					        uses: actions/checkout@v4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Checkout Yosys
 | 
				
			||||||
 | 
					        uses: actions/checkout@v4
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          repository: 'YosysHQ/yosys'
 | 
				
			||||||
 | 
					          path: 'yosys'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Runtime environment
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          echo "procs=$(nproc)" >> $GITHUB_ENV
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Build Yosys
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          cd yosys
 | 
				
			||||||
 | 
					          make config-clang
 | 
				
			||||||
 | 
					          echo "ENABLE_VERIFIC := 1" >> Makefile.conf
 | 
				
			||||||
 | 
					          echo "ENABLE_VERIFIC_EDIF := 1" >> Makefile.conf
 | 
				
			||||||
 | 
					          echo "ENABLE_VERIFIC_LIBERTY := 1" >> Makefile.conf
 | 
				
			||||||
 | 
					          echo "ENABLE_CCACHE := 1" >> Makefile.conf
 | 
				
			||||||
 | 
					          make -j${{ env.procs }}
 | 
				
			||||||
 | 
					          make install DESTDIR=${GITHUB_WORKSPACE}/.local PREFIX=
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Build SBY
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          make install DESTDIR=${GITHUB_WORKSPACE}/.local PREFIX=
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Run SBY tests
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          make run_ci
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue