mirror of
https://github.com/Pakobbix/StartUI-oobabooga-webui
synced 2025-11-09 21:49:39 +00:00
Compare commits
No commits in common. "b10c0238104c61f206a8504b4c23a70c90790327" and "a07146e8795f7307068c28d7dc7ed81b2c73a480" have entirely different histories.
b10c023810
...
a07146e879
64
.github/workflows/package.yml
vendored
64
.github/workflows/package.yml
vendored
@ -6,50 +6,11 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
package_on_ubuntu:
|
package:
|
||||||
runs-on: ubuntu-selfhosted
|
runs-on: self-hosted
|
||||||
steps:
|
strategy:
|
||||||
- name: Set up Python
|
matrix:
|
||||||
uses: actions/setup-python@v3
|
os: [windows-latest, ubuntu-latest]
|
||||||
with:
|
|
||||||
python-version: 3.x
|
|
||||||
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Upgrade Pip
|
|
||||||
run: python -m pip install --upgrade pip
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get upgrade -y
|
|
||||||
sudo apt-get install patchelf -y
|
|
||||||
pip install -r requirements.txt
|
|
||||||
pip install nuitka
|
|
||||||
sudo apt install patchelf
|
|
||||||
|
|
||||||
- name: Build and package
|
|
||||||
run: python3 -m nuitka StartUI.py --onefile --enable-plugin=pyqt5 --product-version=1.6.0 --disable-console --include-data-files=webuiGUI.py=webuiGUI.py --output-dir=./dist --noinclude-pytest-mode=nofollow --noinclude-setuptools-mode=nofollow
|
|
||||||
|
|
||||||
- name: remove build folders
|
|
||||||
run: |
|
|
||||||
rm -rf dist/StartUI.build
|
|
||||||
rm -rf dist/StartUI.dist
|
|
||||||
rm -rf dist/StartUI.onefile-build
|
|
||||||
|
|
||||||
- name: Executive permission
|
|
||||||
run: |
|
|
||||||
chmod +x dist/StartUI
|
|
||||||
|
|
||||||
- name: Upload artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: ubuntu-binary-v1.6
|
|
||||||
path: dist
|
|
||||||
|
|
||||||
package_on_windows:
|
|
||||||
runs-on: windows-selfhosted
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v3
|
||||||
@ -59,25 +20,22 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Create and activate venv
|
||||||
|
run: python -m venv StartUI_env
|
||||||
|
|
||||||
- name: Upgrade Pip
|
- name: Upgrade Pip
|
||||||
run: python -m pip install --upgrade pip
|
run: python -m pip install --upgrade pip
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
pip install nuitka
|
pip install pyinstaller
|
||||||
|
|
||||||
- name: Build and package
|
- name: Build and package
|
||||||
run: nuitka StartUI.py --onefile --enable-plugin=pyqt5 --product-version=1.6.0 --disable-console --include-data-files=webuiGUI.py=webuiGUI.py --output-dir=./dist --noinclude-pytest-mode=nofollow --noinclude-setuptools-mode=nofollow
|
run: pyinstaller --noconfirm --onefile --windowed StartUI.py --add-data="webuiGUI.py:."
|
||||||
|
|
||||||
- name: remove build folders
|
|
||||||
run: |
|
|
||||||
Remove-Item -Recurse -Force ./dist/StartUI.build
|
|
||||||
Remove-Item -Recurse -Force ./dist/StartUI.dist
|
|
||||||
Remove-Item -Recurse -Force ./dist/StartUI.onefile-build
|
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: windows-binary-v1.6
|
name: ${{ matrix.os }}-binary-v1.6
|
||||||
path: dist
|
path: dist
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user