Skip to content

Commit e3c25e1

Browse files
committed
ci: fix PyInstaller build — collect crossplane dependency
PyInstaller doesn't auto-detect crossplane import. Use --collect-all to ensure all gixy and crossplane modules are bundled. Also skip upload step on workflow_dispatch since there's no release target.
1 parent eeffb88 commit e3c25e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/pyinstaller.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
pip install . pyinstaller
4848
4949
- name: Build binary with PyInstaller
50-
run: pyinstaller --onefile --name ${{ matrix.artifact }} gixy/__main__.py
50+
run: pyinstaller --onefile --name ${{ matrix.artifact }} --collect-all crossplane --collect-all gixy gixy/__main__.py
5151

5252
- name: Verify binary runs
5353
shell: bash
@@ -61,6 +61,7 @@ jobs:
6161

6262
checksums:
6363
name: Generate checksums and upload assets
64+
if: github.event_name == 'release'
6465
needs: build
6566
runs-on: ubuntu-latest
6667
permissions:

0 commit comments

Comments
 (0)