feat: Add Novita support to Python-TGPT library #59
Workflow file for this run
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: Make executables | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
publish: | |
name: Executables for ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
artifact_name: Linux | |
artifact_upload_name: Linux | |
asset_name: pytgpt-linux-amd64 | |
- os: macos-latest | |
artifact_name: MacOS | |
artifact_upload_name: MacOS | |
asset_name: pytgpt-macos-amd64 | |
- os: windows-latest | |
artifact_name: Windows | |
artifact_upload_name: Windows.exe | |
asset_name: pytgpt-windows-amd64.exe | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies and python-tgpt | |
run: | | |
python -m pip install --upgrade pip pyinstaller pillow | |
python -m pip install -r requirements.txt | |
python -m pip install . | |
python -m pip install g4f[all]==0.2.6.1 | |
- name: Build executable | |
run: | | |
pyinstaller main.py --onefile --exclude pandas --distpath dist --workpath build --log-level INFO --exclude numpy --exclude matplotlib --exclude PyQt5 --exclude PyQt6 --exclude share --contents-directory . --icon assets/logo.png --noconfirm --name ${{ matrix.artifact_name }} | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: dist/${{ matrix.artifact_upload_name }} | |
asset_name: ${{ matrix.asset_name }} | |
tag: ${{ github.ref }} | |
overwrite: true |