Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion .github/workflows/build-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
workflow_dispatch:

jobs:
build-docker:
build-linux:
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -31,4 +31,35 @@ jobs:
run: uv sync --frozen

- name: Build
run: uv run poe nuitka-linux

- name: Upload Linux CLI artifact
uses: actions/upload-artifact@v4
with:
name: cli-linux
path: app.bin

build-windows:
runs-on: windows-latest
defaults:
run:
working-directory: ./src/cli

steps:
- name: Checkout repository
uses: actions/checkout@v6

- name: Install uv
uses: astral-sh/setup-uv@v7

- name: Install deps with uv
run: uv sync --frozen

- name: Build (Windows) via poe
run: uv run poe nuitka

- name: Upload Windows CLI artifact
uses: actions/upload-artifact@v4
with:
name: cli-windows
path: app.exe
1 change: 1 addition & 0 deletions src/cli/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ dev = ["poethepoet>=0.39.0"]
[tool.poe.tasks]
# Is not possible to build due to type hint error
nuitka = "nuitka --standalone --onefile --clang --lto=yes --python-flag=-m --python-flag=-OO --disable-bytecode-cache ./app"
nuitka-linux = "nuitka --standalone --onefile --clang --lto=yes --python-flag=-m --python-flag=-OO --disable-bytecode-cache ./app"
nuitka-debug = "nuitka --standalone --onefile --clang --lto=yes --debug --python-flag=-m --python-flag=-OO --disable-bytecode-cache ./app"


Expand Down
Loading