build(CICD): add pyinstaller build for binary
Python tests / test-serverlibrary (push) Successful in 12s
Python tests / test-wallpaper-changer (push) Successful in 20s
Python tests / lint-wallpaper-changer (push) Successful in 5s
Python tests / lint-serverlibrary (push) Successful in 5s
Python tests / build (push) Successful in 44s

This commit is contained in:
Lucas Vivo committed 2026-11-17 12:18:13 +01:00
1 parent d975dc5a12
commit 408acfee2d
1 file changed
+22 -5
+22 -5
View File
@@ -93,17 +93,34 @@ jobs:
working-directory: wallpaper_changer
run: |
python -m pip install --upgrade pip
python -m pip install build
python -m pip install pyinstaller build
python -m pip install ../serverlibrary
python -m pip install .
- name: Build Python package
- name: Build executable
working-directory: wallpaper_changer
run: |
python -m build
python -m PyInstaller \
--clean \
--onefile \
--paths src \
--name wallpaper_changer \
main.py
- name: Build wheel
working-directory: wallpaper_changer
run: |
python -m build --wheel
- name: Verify build outputs
run: |
ls -lh wallpaper_changer/dist/
test -f wallpaper_changer/dist/wallpaper_changer
ls wallpaper_changer/dist/*.whl
- name: Upload build artifacts
uses: actions/upload-artifact@v3
uses: https://github.com/christopherHX/gitea-upload-artifact@v4
with:
name: wallpaper-changer-dist
name: wallpaper-changer-build
path: wallpaper_changer/dist/
if-no-files-found: error