@@ -52,20 +52,39 @@ jobs:
5252 cache : " pip"
5353 cache-dependency-path : " requirements/requirements*.txt"
5454 - name : Install dependencies
55- # install only the really required modules before the pyinstaller build
55+ # install only the really required modules before the nuitka build
5656 run : |
5757 pip install -r requirements/requirements-build.txt
5858 python download_binaries.py
59- - name : Build executables with pyinstaller
59+ - name : Build executables with nuitka
60+ shell : bash
6061 run : |
61- python -m PyInstaller jimmy.spec
62+ python -m nuitka --version
63+ # --onefile-no-compression to avoid "ValueError: compression parameter 'nb_workers' received an illegal value 4; the valid range is [0, 0]"
64+ python -m nuitka \
65+ --assume-yes-for-downloads \
66+ --standalone --onefile \
67+ --follow-imports \
68+ --follow-import-to=jimmy \
69+ $(python generate_nuitka_config.py) \
70+ --user-package-configuration-file=nuitka-anyblock_exporter.config.yml \
71+ --include-data-dir=./bin=bin \
72+ --output-filename="$(python obtain_executable_name.py)" \
73+ --output-dir=dist \
74+ jimmy/jimmy_cli.py
75+ # - name: Build Executable
76+ # uses: Nuitka/Nuitka-Action@main
77+ # with:
78+ # nuitka-version: main
79+ # script-name: jimmy/jimmy_cli.py
80+ # mode: app
6281 - name : Release
6382 uses : softprops/action-gh-release@v3
6483 # release only if there is a release tag
6584 if : ${{ startsWith(github.ref, 'refs/tags/v') }}
6685 with :
6786 files : |
68- ./dist/jimmy*
87+ ./dist/jimmy- *
6988 ./bin/copyright.pandoc
7089 - name : Check executable size
7190 shell : bash
0 commit comments