Repository navigation
Remove generated protobuf code from git tracking and add cross-platform Makefile build system - #2
Conversation
|
@copilot Add a makefile mechanism to organize Go builds and npm builds. |
Added a comprehensive Makefile with targets for building Go backend ( |
|
@copilot replace npm to pnpm in makefile |
|
@copilot remove proto/update.sh, move the commands to makefile, and update commands in makefile to adapter windows. |
Removed proto/update.sh and moved the |
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
…ile for cross-platform support Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
45a15f8 to
0f8f094
Compare
|
@copilot fix these test actions |
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Fixed test workflows for both Unix and Windows by:
The test workflows will now generate the required protobuf files that were removed from git tracking. (4d13b38) |
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
|
@copilot the test actions still has errors, please read the latest test actions error and fix them. |
…installation Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Fixed the test workflow errors. The issue was that pnpm requires running Changed the workflow to use npm for installing protoc-gen-es instead of pnpm, which is simpler and avoids the global bin directory configuration issue. This is acceptable since the workflow only needs to install a single global package, and npm is already available by default in GitHub Actions runners. (16d0a6f) |
|
@copilot fix .github/workflows/release-preview.yml, add protobuf setups, and update .goreleaser.yaml to use env to adpater current project name and group name. |
… env variables for repo owner/name Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Fixed release-preview.yml and .goreleaser.yaml: Protobuf setup in release workflow:
Environment variables in .goreleaser.yaml:
The configuration now dynamically adapts to the current repository owner and name from GitHub context. (884ad9e) |
JonasGao
left a comment
There was a problem hiding this comment.
@copilot extracte project's dependency installation and protobuf generation preparations unified into a single workflow definition, allowing other workflows to reference it.
… composite action Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Created a reusable composite action at Composite Action Features:
Updated Workflows:
This eliminates code duplication across workflows and makes it easier to maintain dependency setup in one central location. (b182ca8) |
This PR removes auto-generated protobuf code directories from git tracking and introduces a comprehensive cross-platform Makefile build system to manage code generation and builds.
Changes Made
Generated Files Management
gen/go/andwebui/gen/ts/to.gitignoreBuild System
all(default),build,run,devbuild-go,build-ui,build-ui-windowsinstall-deps,install-deps-go,install-deps-ui(using pnpm)generate-proto- runsbuf generatedirectly (cross-platform)test,test-gocleanto remove build artifactsmake helpdisplays comprehensive usage informationbuildtarget depends ongenerate-protoandbuild-gobuild-godepends onbuild-ui(to ensure UI artifacts are available for embedding)proto/update.shshell script and integratedbuf generatecommand directly into Makefile for Windows compatibilitypnpm-lock.yamlCI/CD Workflows
.github/actions/setup-build-deps) to centralize dependency installation and protobuf generation.goreleaser.yamlto use environment variables (GITHUB_OWNER,PROJECT_NAME) for dynamic repository configuration, allowing the release process to adapt to any forked repositoryBenefits
make helpOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.