This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Package exe with PyInstaller - Windows | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
defaults: | ||
run: | ||
working-directory: ./server | ||
jobs: | ||
windows-cpu+dml: | ||
Check failure on line 14 in .github/workflows/build-executable.yml GitHub Actions / Package exe with PyInstaller - WindowsInvalid workflow file
|
||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
architecture: x64 | ||
# cache: pip | ||
- name: Installing build dependencies | ||
run: python -m pip install --upgrade pip wheel setuptools pyinstaller | ||
- name: Installing project dependencies | ||
run: python -m pip install -r requirements-common.txt -r requirements-dml.txt | ||
- name: Building executable | ||
run: pyinstaller --clean -y --dist ./dist --workpath /tmp MMVCServerSIO.spec | ||
- name: Uploading artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: voice-changer | ||
path: ./dist | ||
# linux-cpu: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Set up Python | ||
# uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: '3.10' | ||
# architecture: 'x64' | ||
# # cache: 'pip' | ||
# - name: Installing build dependencies | ||
# run: python -m pip install --upgrade pip wheel setuptools pyinstaller | ||
# - name: Installing project dependencies | ||
# run: | | ||
# cd server | ||
# python -m pip install -r requirements-common.txt -r requirements-dml.txt | ||
# - name: Building executable | ||
# run: pyinstaller --clean -y --dist ./dist --workpath /tmp MMVCServerSIO.spec | ||
# - name: Uploading artifact | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: voice-changer | ||
# path: server/dist |