Modularized entire lexer_manager, implemented threading to codespace #22
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: Build and Ship Zenith as Standalone | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-zip: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Create and Activate Virtual Environment | |
run: | | |
python -m venv .venv | |
.venv\Scripts\Activate.ps1 | |
shell: pwsh | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install nuitka | |
- name: Build Standalone EXE | |
run: echo Yes | python -m nuitka --standalone --include-data-dir=zenith/media=zenith/media --include-data-files=zenith/shortcuts.lua=zenith/shortcuts.lua --include-data-files=zenith/color_schemes.lua=zenith/color_schemes.lua --enable-plugin=pyqt6 --windows-console-mode=disable --windows-icon-from-ico=zenith/media/icon.ico Nyxtext.py | |
- name: Zip Standalone Version | |
run: | | |
Remove-Item -Path Zenith_Standalone.zip -ErrorAction Ignore | |
Compress-Archive -Path Nyxtext.dist\* -DestinationPath Zenith_Standalone.zip -Force | |
- name: Upload Standalone ZIP as Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Zenith-Standalone | |
path: Zenith_Standalone.zip | |