Skip to content

Commit c3bb110

Browse files
committed
Simplify Go backend build step in CI workflow
Replaces the cross-platform Go build logic with a single npm script invocation (`npm run build:go`) in the GitHub Actions workflow. This change streamlines the build process and also includes model downloading as part of the build step.
1 parent e30de46 commit c3bb110

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,8 @@ jobs:
100100
run: mkdir -p resources/backend
101101
shell: bash
102102

103-
- name: Build Go Backend (Cross-platform)
104-
working-directory: backend
105-
run: |
106-
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
107-
go build -ldflags="-s -w" -o ../resources/backend/alice-backend.exe
108-
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
109-
go build -ldflags="-s -w" -o ../resources/backend/alice-backend
110-
else
111-
go build -ldflags="-s -w" -o ../resources/backend/alice-backend
112-
fi
103+
- name: Build Go Backend and Download Models
104+
run: npm run build:go
113105
shell: bash
114106

115107
- name: Build Release Files

0 commit comments

Comments
 (0)