-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
529860f
commit 19e6f4f
Showing
4 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
*.egg-info | ||
.direnv/ | ||
.envrc | ||
.idea | ||
/.idea | ||
/dist | ||
/internal/util/version.txt | ||
/python/coglet/_version.py | ||
/uv.lock | ||
__pycache__ | ||
python/coglet/_version.py | ||
uv.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# Build binaries | ||
|
||
set -euo pipefail | ||
|
||
base_dir="$(git rev-parse --show-toplevel)" | ||
|
||
cd "$base_dir" | ||
python -m build | ||
|
||
# Export Python version to Go | ||
python -c 'import coglet; print(coglet.__version__)' > internal/util/version.txt | ||
|
||
for os in darwin linux; do | ||
for arch in amd64 arm64; do | ||
CGO_ENABLED=0 GOOS=$os GOARCH=$arch go build -o dist/cog-server-$os-$arch ./cmd/cog-server | ||
done | ||
done |