Skip to content

Commit db4819b

Browse files
committed
updatig to v1.1.0
1 parent 578b05f commit db4819b

32 files changed

Lines changed: 1726 additions & 614 deletions

.github/workflows/go.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,18 @@ jobs:
1919
- name: Set up Go
2020
uses: actions/setup-go@v4
2121
with:
22-
go-version: '1.20'
22+
go-version: '1.21'
23+
24+
- name: Check formatting
25+
run: test -z "$(gofmt -l .)"
2326

2427
- name: Build
2528
run: go build -v ./...
2629

30+
- name: Build versioned binary
31+
run: |
32+
VERSION="$(cat VERSION)"
33+
CGO_ENABLED=0 go build -ldflags "-X main.version=${VERSION}" -o git-genius ./cmd/genius
34+
2735
- name: Test
2836
run: go test -v ./...

0 commit comments

Comments
 (0)