Temp commit #137
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: Build Windows Binaries | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
Blint-Build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
path: blint | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install poetry | |
id: poetry | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install setuptools pyinstaller tzdata poetry | |
cd blint | |
poetry config virtualenvs.create false | |
poetry install --no-cache --without dev | |
- name: Binary windows build | |
run: | | |
cd blint | |
pyinstaller blint/cli.py --noconfirm --log-level=WARN --nowindow --onefile --name blint --add-data="blint/data;blint/data" --add-data="blint/data/annotations;blint/data/annotations" --collect-submodules blint --disable-windowed-traceback -i blint.ico --version-file=file_version_info.txt --noupx | |
(Get-FileHash .\dist\blint.exe).hash | Out-File -FilePath .\dist\blint.exe.sha256 | |
set PYTHONIOENCODING=UTF-8 | |
.\dist\blint.exe -i .\dist\blint.exe -o reports --no-banner | |
env: | |
PYTHONIOENCODING: utf-8 | |
LANG: en_US.utf-8 | |
PYTHONUTF8: 1 | |
- uses: actions/upload-artifact@v1 | |
with: | |
path: blint/dist | |
name: blint-windows | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
blint/dist/blint.exe | |
blint/dist/blint.exe.sha256 |