mirror of
https://github.com/MengMengCode/CLICD.git
synced 2026-08-04 21:31:23 +08:00
1008 B
1008 B
Local Build
Frontend Build
cd frontend
npm install
npm run build
Build output is written to frontend/dist.
Backend Build
cd backend
go test ./...
go build -o ../build/clicd .
To package the embedded web panel, sync the frontend build output into the backend embed directory first.
One-command Build
The project root provides a build script:
bash build.sh
The script chains frontend build, static asset sync, and Go binary build.
The default target is Linux amd64. To build an ARM64 package, set:
CLICD_GOARCH=arm64 bash build.sh
To build both amd64 and arm64 release assets at once:
CLICD_GOARCH=all bash build.sh
The build writes:
dist/clicd-linux-amd64dist/clicd-linux-amd64.tar.gzdist/clicd-linux-arm64dist/clicd-linux-arm64.tar.gz
Docs Build
cd docs
npm install
npm run dev
npm run build
npm run dev starts a local preview, and npm run build generates static documentation.