2020-05-12 07:42:13 +00:00
|
|
|
name: Video2X Nightly Build
|
2020-05-12 06:18:24 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
|
2020-05-12 06:40:55 +00:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: src
|
|
|
|
|
2020-05-12 06:18:24 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-05-12 07:16:28 +00:00
|
|
|
- name: Setup Python 3.8
|
2020-05-12 06:18:24 +00:00
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: 3.8
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2020-05-12 07:31:34 +00:00
|
|
|
python -m pip install -U pip
|
|
|
|
pip install -U pyinstaller pywin32
|
|
|
|
pip install -U -r requirements.txt
|
2020-05-12 06:18:24 +00:00
|
|
|
- name: Build Video2X CLI
|
|
|
|
run: |
|
2020-05-12 06:29:44 +00:00
|
|
|
pyinstaller --noconfirm --log-level=WARN `
|
|
|
|
--onefile `
|
|
|
|
--add-data="wrappers;wrappers" `
|
|
|
|
--icon="images\video2x.ico" `
|
2020-05-12 06:40:55 +00:00
|
|
|
video2x.py
|
2020-05-12 06:18:24 +00:00
|
|
|
- name: Build Video2X GUI
|
|
|
|
run: |
|
2020-05-12 06:29:44 +00:00
|
|
|
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" `
|
2020-05-12 06:40:55 +00:00
|
|
|
video2x_gui.py
|
2020-05-12 07:16:28 +00:00
|
|
|
- name: Build Video2X setup script
|
2020-05-12 06:18:24 +00:00
|
|
|
run: |
|
2020-05-12 06:29:44 +00:00
|
|
|
pyinstaller --noconfirm --log-level=WARN `
|
|
|
|
--onefile `
|
|
|
|
--icon="images\video2x.ico" `
|
2020-05-12 06:40:55 +00:00
|
|
|
video2x_setup.py
|
2020-05-12 07:16:28 +00:00
|
|
|
- name: Collect artifacts into folder
|
|
|
|
run: |
|
2020-05-12 07:31:34 +00:00
|
|
|
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\"
|
2020-05-12 07:16:28 +00:00
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2020-05-12 07:31:34 +00:00
|
|
|
name: video2x-nightly-win32-light
|
|
|
|
path: src/video2x-nightly-win32-light/
|