Skip to content
This repository was archived by the owner on Sep 23, 2026. It is now read-only.

Commit 5159bf1

Browse files
committed
chore(build): split package and binary builds
Signed-off-by: Richard Chien <[email protected]>
1 parent 121a9fd commit 5159bf1

6 files changed

Lines changed: 17 additions & 8 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
run: make test
5757

5858
- name: Build standalone binary
59-
run: make build
59+
run: make build-bin
6060

6161
- name: Smoke test binary --help
6262
shell: python
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: Release (kimi-cli)
22

33
on:
44
push:
@@ -74,7 +74,7 @@ jobs:
7474
run: make prepare-build
7575

7676
- name: Build standalone binary
77-
run: make build
77+
run: make build-bin
7878

7979
- name: Package artifact
8080
shell: python
@@ -181,7 +181,7 @@ jobs:
181181
version: "0.8.5"
182182

183183
- name: Build distributions
184-
run: uv build --package kimi-cli --no-sources --out-dir dist
184+
run: make build-kimi-cli
185185

186186
- name: Publish to PyPI
187187
uses: pypa/gh-action-pypi-publish@release/v1

‎.github/workflows/release-kosong.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
version: "0.8.5"
4848

4949
- name: Build distributions
50-
run: uv build --package kosong --no-sources --out-dir dist/kosong
50+
run: make build-kosong
5151

5252
- name: Publish to PyPI
5353
uses: pypa/gh-action-pypi-publish@release/v1

‎.github/workflows/release-pykaos.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
version: "0.8.5"
4848

4949
- name: Build distributions
50-
run: uv build --package pykaos --no-sources --out-dir dist/pykaos
50+
run: make build-pykaos
5151

5252
- name: Publish to PyPI
5353
uses: pypa/gh-action-pypi-publish@release/v1

‎Makefile‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,15 @@ test-kosong: ## Run kosong tests (including doctests).
5050
test-pykaos: ## Run pykaos tests.
5151
uv run --project packages/kaos --directory packages/kaos pytest tests -vv
5252

53-
.PHONY: build
54-
build: ## Build the standalone executable with PyInstaller.
53+
.PHONY: build build-kimi-cli build-kosong build-pykaos build-bin
54+
build: build-kimi-cli build-kosong build-pykaos ## Build Python packages for release.
55+
build-kimi-cli: ## Build the kimi-cli sdist and wheel.
56+
uv build --package kimi-cli --no-sources --out-dir dist
57+
build-kosong: ## Build the kosong sdist and wheel.
58+
uv build --package kosong --no-sources --out-dir dist/kosong
59+
build-pykaos: ## Build the pykaos sdist and wheel.
60+
uv build --package pykaos --no-sources --out-dir dist/pykaos
61+
build-bin: ## Build the standalone executable with PyInstaller.
5562
uv run pyinstaller kimi.spec
5663

5764
.PHONY: ai-test

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ make test # run tests
192192
make test-kimi-cli # run Kimi CLI tests only
193193
make test-kosong # run kosong tests only
194194
make test-pykaos # run pykaos tests only
195+
make build # build python packages
196+
make build-bin # build standalone binary
195197
make help # show all make targets
196198
```
197199

0 commit comments

Comments
 (0)