Skip to content

Commit 6ec1603

Browse files
Update build-cli.yml
Update pyproject.toml
1 parent e2903c2 commit 6ec1603

2 files changed

Lines changed: 32 additions & 5 deletions

File tree

.github/workflows/build-cli.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,22 @@ jobs:
3333
- name: Build
3434
run: uv run poe nuitka-linux
3535

36+
- name: Show build outputs
37+
run: ls -la
38+
39+
- name: Verify Linux artifact exists
40+
run: |
41+
if ! ls ./app* >/dev/null 2>&1; then
42+
echo "No artifact found"; exit 1
43+
else
44+
echo "Found artifact(s):"; ls ./app*
45+
fi
46+
3647
- name: Upload Linux CLI artifact
3748
uses: actions/upload-artifact@v4
3849
with:
3950
name: cli-linux
40-
path: ./src/cli/app.bin
51+
path: ./src/cli/**/app*
4152

4253
build-windows:
4354
runs-on: windows-latest
@@ -58,8 +69,24 @@ jobs:
5869
- name: Build (Windows) via poe
5970
run: uv run poe nuitka
6071

72+
- name: Show build outputs
73+
run: |
74+
Get-ChildItem -Path . -Recurse -File | Select-Object FullName
75+
shell: powershell
76+
77+
- name: Verify Windows artifact exists
78+
run: |
79+
$files = Get-ChildItem -Path . -Filter 'app*.exe' -Recurse -File
80+
if ($files.Count -eq 0) {
81+
Write-Error 'No exe found'
82+
exit 1
83+
} else {
84+
$files | ForEach-Object { Write-Host "Found: $($_.FullName)" }
85+
}
86+
shell: powershell
87+
6188
- name: Upload Windows CLI artifact
6289
uses: actions/upload-artifact@v4
6390
with:
6491
name: cli-windows
65-
path: ./src/cli/app.exe
92+
path: ./src/cli/**/app*.exe

src/cli/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ dev = ["poethepoet>=0.39.0"]
2222

2323
[tool.poe.tasks]
2424
# Is not possible to build due to type hint error
25-
nuitka = "nuitka --standalone --onefile --clang --lto=yes --python-flag=-m --python-flag=-OO --disable-bytecode-cache ./app"
26-
nuitka-linux = "nuitka --standalone --onefile --clang --lto=yes --python-flag=-m --python-flag=-OO --disable-bytecode-cache ./app"
27-
nuitka-debug = "nuitka --standalone --onefile --clang --lto=yes --debug --python-flag=-m --python-flag=-OO --disable-bytecode-cache ./app"
25+
nuitka = "nuitka --standalone --onefile --clang --lto=yes --python-flag=-m --python-flag=-OO --disable-bytecode-cache --assume-yes-for-downloads ./app"
26+
nuitka-linux = "nuitka --standalone --onefile --clang --lto=yes --python-flag=-m --python-flag=-OO --disable-bytecode-cache --assume-yes-for-downloads ./app"
27+
nuitka-debug = "nuitka --standalone --onefile --clang --lto=yes --debug --python-flag=-m --python-flag=-OO --disable-bytecode-cache --assume-yes-for-downloads ./app"
2828

2929

3030
[tool.setuptools]

0 commit comments

Comments
 (0)