mirror of
https://github.com/Pakobbix/StartUI-oobabooga-webui
synced 2025-11-09 15:39:39 +00:00
fixed the ubuntu-latest are build on windows and windows-latest build on ubuntu
This commit is contained in:
parent
334b1dde6c
commit
9fa0424a6c
50
.github/workflows/package.yml
vendored
50
.github/workflows/package.yml
vendored
@ -3,23 +3,26 @@ on:
|
|||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- .github/workflows/**
|
- .github/workflows/**
|
||||||
workflow_dispatch:
|
|
||||||
|
env:
|
||||||
|
PACKAGE_VERSION: v1.4
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
package:
|
package-self-hosted-ubuntu:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
if: runner.os == 'Linux'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest, ubuntu-latest]
|
python-version: [3.6, 3.7, 3.8, 3.9]
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v3
|
|
||||||
with:
|
|
||||||
python-version: 3.x
|
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v3
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
@ -34,5 +37,34 @@ jobs:
|
|||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.os }}-binary-v1.4
|
name: linux-binary-${{ env.PACKAGE_VERSION }}
|
||||||
|
path: dist
|
||||||
|
|
||||||
|
package-self-hosted-windows:
|
||||||
|
runs-on: self-hosted
|
||||||
|
if: runner.os == 'Windows'
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v3
|
||||||
|
with:
|
||||||
|
python-version: 3.x
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt
|
||||||
|
pip install pyinstaller
|
||||||
|
|
||||||
|
- name: Build and package
|
||||||
|
run: |
|
||||||
|
pyinstaller --noconfirm --onefile --windowed StartUI.py
|
||||||
|
copy webuiGUI.py dist\ # Copy webuiGUI.py to the dist directory
|
||||||
|
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: windows-binary-${{ env.PACKAGE_VERSION }}
|
||||||
path: dist
|
path: dist
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user