Correct output version

This commit is contained in:
agosti_j committed 2026-08-14 17:13:54 +02:00
1 parent 23245c547c
commit 7a1b4579ff
2 files changed
+2 -22

No files matched your search

+2 -21
View File
@@ -26,26 +26,6 @@ jobs:
name: linux-arm64
extension: ""
- goos: darwin
goarch: amd64
name: macos-amd64
extension: ""
- goos: darwin
goarch: arm64
name: macos-arm64
extension: ""
- goos: windows
goarch: amd64
name: windows-amd64
extension: ".exe"
- goos: windows
goarch: arm64
name: windows-arm64
extension: ".exe"
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -60,10 +40,11 @@ jobs:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: 0
VERSION: ${{ github.ref_name }}
run: |
mkdir -p dist
go build \
-ldflags="-X main.version=${{ github.ref_name }}" \
-ldflags="-X main.version=${VERSION}" \
-o "dist/findbaseport-${{ matrix.name }}${{ matrix.extension }}" \
.
-1
View File
@@ -1,5 +1,4 @@
BINARY := findbaseport
VERSION := dev
.PHONY: all fmt vet lint build clean