add versioning (#11)
Reviewed-on: #11 Co-authored-by: phoenix <kundeng00@pm.me> Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
@@ -19,7 +19,12 @@ jobs:
|
||||
go-version: '1.24.6' # You can specify a specific version or 'stable'
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
run: |
|
||||
go build -v -ldflags "\
|
||||
-X main.version=${{ github.ref_name }} \
|
||||
-X main.commit=${{ github.sha }} \
|
||||
-X main.date=$(date +%Y-%m-%dT%H:%M:%S%z)" \
|
||||
-o clean_file
|
||||
|
||||
- name: Test
|
||||
run: go test -v ./...
|
||||
|
||||
Reference in New Issue
Block a user