mirror of
				https://github.com/k4yt3x/video2x.git
				synced 2025-10-31 12:50:59 +01:00 
			
		
		
		
	rewritten the CI pipeline for 5.0.0
This commit is contained in:
		
							parent
							
								
									dc532ff184
								
							
						
					
					
						commit
						d09efc4748
					
				
							
								
								
									
										39
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,39 @@ | ||||
| name: CI | ||||
| on: | ||||
|   push: | ||||
|     branches: | ||||
|       - master | ||||
|       - dev/* | ||||
|   pull_request: {} | ||||
|   workflow_dispatch: {} | ||||
| jobs: | ||||
|   ubuntu: | ||||
|     runs-on: ubuntu-latest | ||||
|     env: | ||||
|       DEBIAN_FRONTEND: noninteractive | ||||
|     steps: | ||||
|       - name: Checkout repository | ||||
|         uses: actions/checkout@v2 | ||||
|         with: | ||||
|           submodules: recursive | ||||
|       - name: Setup Python | ||||
|         uses: actions/setup-python@v2 | ||||
|         with: | ||||
|           python-version: 3.8 | ||||
|       - name: Install dependencies | ||||
|         run: | | ||||
|           sudo apt-get update | ||||
|           sudo apt-get install -y --no-install-recommends \ | ||||
|             python3-opencv python3-pil python3-tqdm python3-dev \ | ||||
|             libvulkan-dev glslang-dev glslang-tools swig | ||||
|           pip install wheel | ||||
|           pip wheel -w /wheels \ | ||||
|             rife-ncnn-vulkan-python@git+https://github.com/media2x/rife-ncnn-vulkan-python.git . | ||||
|       - name: Package artifacts | ||||
|         run: | | ||||
|           tar cJvf /video2x-nightly-wheels.txz /wheels/* | ||||
|       - name: Upload artifacts | ||||
|         uses: actions/upload-artifact@v2 | ||||
|         with: | ||||
|           name: video2x-nightly-wheels | ||||
|           path: /video2x-nightly-wheels.txz | ||||
							
								
								
									
										69
									
								
								.github/workflows/nightly.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										69
									
								
								.github/workflows/nightly.yml
									
									
									
									
										vendored
									
									
								
							| @ -1,69 +0,0 @@ | ||||
| # Name: Video2X Nightly Build | ||||
| # Creator: K4YT3X | ||||
| # Date Created: May 12, 2020 | ||||
| # Last Modified: May 28, 2020 | ||||
| 
 | ||||
| name: Video2X Nightly Build | ||||
| 
 | ||||
| on: | ||||
|   push: | ||||
|     branches: [master] | ||||
| 
 | ||||
| defaults: | ||||
|   run: | ||||
|     working-directory: src | ||||
| 
 | ||||
| jobs: | ||||
|   build: | ||||
|     runs-on: windows-latest | ||||
| 
 | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|       - name: Setup Python 3.8 | ||||
|         uses: actions/setup-python@v2 | ||||
|         with: | ||||
|           python-version: 3.8 | ||||
|       - name: Install dependencies | ||||
|         run: | | ||||
|           python -m pip install -U pip | ||||
|           pip install -U pyinstaller pywin32 | ||||
|           pip install -U -r requirements.txt | ||||
|       - name: Build Video2X CLI | ||||
|         run: | | ||||
|           pyinstaller --noconfirm --log-level=WARN ` | ||||
|               --onefile ` | ||||
|               --add-data="locale;locale" ` | ||||
|               --add-data="wrappers;wrappers" ` | ||||
|               --icon="images\video2x.ico" ` | ||||
|               video2x.py | ||||
|       - name: Build Video2X GUI | ||||
|         run: | | ||||
|           pyinstaller --noconfirm --log-level=WARN ` | ||||
|               --onefile ` | ||||
|               --add-data="images;images" ` | ||||
|               --add-data="locale;locale" ` | ||||
|               --add-data="video2x_gui.ui;." ` | ||||
|               --add-data="wrappers;wrappers" ` | ||||
|               --icon="images\video2x.ico" ` | ||||
|               video2x_gui.py | ||||
|       - name: Build Video2X setup script | ||||
|         run: | | ||||
|           pyinstaller --noconfirm --log-level=WARN ` | ||||
|               --onefile ` | ||||
|               --additional-hooks-dir "pyinstaller\hooks" ` | ||||
|               --add-data="locale;locale" ` | ||||
|               --add-data="pyinstaller\7z1900-extra;7z" ` | ||||
|               --icon="images\video2x.ico" ` | ||||
|               video2x_setup.py | ||||
|       - name: Collect artifacts into folder | ||||
|         run: | | ||||
|           New-Item "video2x-nightly-win32-light\" -ItemType Directory | ||||
|           Copy-Item "dist\video2x.exe" -Destination "video2x-nightly-win32-light\" | ||||
|           Copy-Item "dist\video2x_gui.exe" -Destination "video2x-nightly-win32-light\" | ||||
|           Copy-Item "dist\video2x_setup.exe" -Destination "video2x-nightly-win32-light\" | ||||
|           Copy-Item "video2x.yaml" -Destination "video2x-nightly-win32-light\" | ||||
|       - name: Upload artifacts | ||||
|         uses: actions/upload-artifact@v2 | ||||
|         with: | ||||
|           name: video2x-nightly-win32-light | ||||
|           path: src/video2x-nightly-win32-light/ | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user