Skip to content

chore: verify chat build on CI #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
43 changes: 43 additions & 0 deletions .github/workflows/chat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Chat

on:
push:
branches: [main]
paths:
- "chat/**"
- "Makefile"
pull_request:
branches: [main]
paths:
- "chat/**"
- "Makefile"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install chat dependencies
run: |
cd chat
bun install

- name: Build chat
run: |
cd chat
BASE_PATH=/magic-base-path-placeholder bun run build

- name: Verify build output
run: |
if [ ! -d "chat/out" ]; then
echo "Build failed: chat/out directory not found"
exit 1
fi
echo "Chat build completed successfully"
ls -la chat/out/
Comment on lines +26 to +43
Copy link
Collaborator

@hugodutka hugodutka Jun 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use make build instead. take a look at

GOOS=$goos GOARCH=$goarch BINPATH="out/$artifact_name" make build
(no need to customize os, arch, and binpath, just plain make build will suffice for testing)