2022-11-19 04:17:27 -05:00
|
|
|
name: PyInstaller builds
|
2022-10-29 18:19:35 -04:00
|
|
|
|
2022-11-19 04:17:27 -05:00
|
|
|
on: [push, workflow_dispatch]
|
2022-10-29 18:19:35 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_ubuntu64_20:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-05-04 14:25:42 -04:00
|
|
|
- name: Setup Python 3.11 x64
|
2022-10-29 18:19:35 -04:00
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
2023-05-04 14:25:42 -04:00
|
|
|
python-version: '3.11'
|
2022-10-29 18:19:35 -04:00
|
|
|
architecture: 'x64'
|
|
|
|
- name: Update pip
|
|
|
|
run: python -m pip install --upgrade pip
|
|
|
|
- name: Update builds tools
|
|
|
|
run: python -m pip install --upgrade setuptools wheel
|
|
|
|
- name: Install dependencies
|
2022-12-09 22:24:08 -05:00
|
|
|
run: python -m pip install -r requirements.txt
|
2022-10-29 18:19:35 -04:00
|
|
|
- name: Install PyInstaller
|
|
|
|
run: python -m pip install --upgrade PyInstaller
|
|
|
|
- name: Run pyinst.py
|
|
|
|
run: python3 pyinst.py --no-prompts --onefile --no-upx --no-crt --no-clean --windowed
|
|
|
|
- name: Create archive (.tar.xz)
|
|
|
|
run: tar -cavf Pesterchum_linux64.tar.xz -C dist Pesterchum
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: Pesterchum_linux64.tar.xz
|
|
|
|
path: Pesterchum_linux64.tar.xz
|
|
|
|
|
2022-11-19 04:17:27 -05:00
|
|
|
build_win64_310:
|
|
|
|
runs-on: windows-2019
|
2022-10-29 18:19:35 -04:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-05-04 14:25:42 -04:00
|
|
|
- name: Setup Python 3.11 x64
|
2022-10-29 18:19:35 -04:00
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
2023-05-04 14:25:42 -04:00
|
|
|
python-version: '3.11'
|
2022-10-29 18:19:35 -04:00
|
|
|
architecture: 'x64'
|
|
|
|
- name: Update pip
|
|
|
|
run: python -m pip install --upgrade pip
|
|
|
|
- name: Update builds tools
|
|
|
|
run: python -m pip install --upgrade setuptools wheel
|
|
|
|
- name: Install dependencies
|
2022-12-09 22:24:08 -05:00
|
|
|
run: python -m pip install -r requirements.txt
|
2022-10-29 18:19:35 -04:00
|
|
|
- name: Install PyInstaller
|
|
|
|
run: python -m pip install --upgrade PyInstaller
|
|
|
|
- name: Run PyInstaller
|
|
|
|
run: python3 pyinst.py --no-prompts --onefile --no-upx --crt --no-clean --windowed
|
|
|
|
- name: Create archive (.zip)
|
2023-05-04 14:25:42 -04:00
|
|
|
run: tar.exe -a -c -f Pesterchum_win64_py311.zip -C dist Pesterchum
|
2022-11-19 04:17:27 -05:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2023-05-04 14:25:42 -04:00
|
|
|
name: Pesterchum_win64_py311.zip
|
|
|
|
path: Pesterchum_win64_py311.zip
|
2022-11-19 04:17:27 -05:00
|
|
|
|
|
|
|
build_win32_38:
|
|
|
|
runs-on: windows-2019
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup Python 3.8 x86
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: '3.8'
|
|
|
|
architecture: 'x86'
|
|
|
|
- name: Update pip
|
|
|
|
run: python -m pip install --upgrade pip
|
|
|
|
- name: Update builds tools
|
|
|
|
run: python -m pip install --upgrade setuptools wheel
|
|
|
|
- name: Install dependencies
|
2022-12-09 22:24:08 -05:00
|
|
|
run: python -m pip install -r requirements-qt5.txt
|
2022-11-19 04:17:27 -05:00
|
|
|
- name: Install PyInstaller
|
|
|
|
run: python -m pip install --upgrade PyInstaller
|
|
|
|
- name: Run PyInstaller
|
2022-11-19 04:21:13 -05:00
|
|
|
run: python3 pyinst.py --prompts False --onefile True --upx False --crt True --clean False --windowed True
|
2022-11-19 04:17:27 -05:00
|
|
|
- name: Create archive (.zip)
|
|
|
|
run: tar.exe -a -c -f Pesterchum_win32_py38.zip -C dist Pesterchum
|
2022-10-29 18:19:35 -04:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2022-11-19 04:17:27 -05:00
|
|
|
name: Pesterchum_win32_py38.zip
|
|
|
|
path: Pesterchum_win32_py38.zip
|
2022-10-29 18:19:35 -04:00
|
|
|
|
|
|
|
build_macos64_11:
|
|
|
|
runs-on: macos-11
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-05-04 14:25:42 -04:00
|
|
|
- name: Setup Python 3.11 x64
|
2022-10-29 18:19:35 -04:00
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
2023-05-04 14:25:42 -04:00
|
|
|
python-version: '3.11'
|
2022-10-29 18:19:35 -04:00
|
|
|
architecture: 'x64'
|
|
|
|
- name: Update pip
|
|
|
|
run: python -m pip install --upgrade pip
|
|
|
|
- name: Update builds tools
|
|
|
|
run: python -m pip install --upgrade setuptools wheel
|
|
|
|
- name: Install dependencies
|
2022-12-09 22:24:08 -05:00
|
|
|
run: python -m pip install -r requirements.txt
|
2022-10-29 18:19:35 -04:00
|
|
|
- name: Install PyInstaller
|
|
|
|
run: python -m pip install --upgrade PyInstaller
|
|
|
|
- name: Run pyinst.py
|
|
|
|
run: python3 pyinst.py --no-prompts --onefile --no-upx --no-crt --no-clean --windowed
|
|
|
|
- name: Create archive (.tar.xz)
|
|
|
|
run: tar -cavf Pesterchum_macOS64.tar.xz -C dist Pesterchum.app
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: Pesterchum_macOS64.tar.xz
|
|
|
|
path: Pesterchum_macOS64.tar.xz
|