Skip to content

Commit 7314694

Browse files
Optimize CI/CD and improve versioning system
- Created `internal/pkg/version` to handle version metadata. - Added `version` command to CLI in `cmd/cims/main.go`. - Updated `Makefile` to inject version info via `-ldflags`. - Updated `.github/workflows/ci.yml` to trigger on all pushes and include a cross-platform build job. - Updated `.github/workflows/release.yml` to inject version info into release binaries. - Bumped Go version to 1.24 in CI to match `go.mod`.
1 parent f3b1cb4 commit 7314694

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set up Go
2525
uses: actions/setup-go@v5
2626
with:
27-
go-version: '1.22'
27+
go-version: '1.24'
2828

2929
- name: Install Protoc
3030
uses: arduino/setup-protoc@v3
@@ -71,7 +71,7 @@ jobs:
7171
- name: Set up Go
7272
uses: actions/setup-go@v5
7373
with:
74-
go-version: '1.22'
74+
go-version: '1.24'
7575

7676
- name: Install Protoc
7777
uses: arduino/setup-protoc@v3
@@ -100,7 +100,7 @@ jobs:
100100
- name: Set up Go
101101
uses: actions/setup-go@v5
102102
with:
103-
go-version: '1.22'
103+
go-version: '1.24'
104104

105105
- name: Install Protoc
106106
uses: arduino/setup-protoc@v3

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Set up Go
2626
uses: actions/setup-go@v5
2727
with:
28-
go-version: '1.22'
28+
go-version: '1.24'
2929

3030
- name: Install Protoc
3131
uses: arduino/setup-protoc@v3

0 commit comments

Comments
 (0)