Files
CLICD/docs/en/developer/build.md
T
2026-07-16 16:58:19 +08:00

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-amd64
  • dist/clicd-linux-amd64.tar.gz
  • dist/clicd-linux-arm64
  • dist/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.