Skip to content

Commit a20db5c

Browse files
committed
fix: update Go version to 1.23 and add build debugging
- Update workflow to use Go 1.23 to match go.mod - Add verbose build output and error checking - Add go mod verify step - Add binary verification after build
1 parent 8a45e74 commit a20db5c

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Set up Go
3838
uses: actions/setup-go@v5
3939
with:
40-
go-version: '1.21'
40+
go-version: '1.23'
4141

4242
- name: Extract version
4343
id: version
@@ -51,15 +51,22 @@ jobs:
5151
echo "Version: $VERSION"
5252
5353
- name: Download dependencies
54-
run: go mod download
54+
run: |
55+
go mod download
56+
go mod verify
5557
5658
- name: Build
5759
run: |
60+
set -e
5861
BINARY_NAME=doplan
5962
if [ "${{ matrix.goos }}" = "windows" ]; then
6063
BINARY_NAME=doplan.exe
6164
fi
62-
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags "-X github.com/doplan/cli/internal/version.Version=${{ steps.version.outputs.version }}" -o $BINARY_NAME ./cmd/doplan
65+
echo "Building for ${{ matrix.goos }}/${{ matrix.goarch }}..."
66+
echo "Go version: $(go version)"
67+
echo "Module path: $(go list -m)"
68+
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -v -ldflags "-X github.com/doplan/cli/internal/version.Version=${{ steps.version.outputs.version }}" -o $BINARY_NAME ./cmd/doplan
69+
ls -lh $BINARY_NAME || echo "Binary not created!"
6370
env:
6471
GOOS: ${{ matrix.goos }}
6572
GOARCH: ${{ matrix.goarch }}

0 commit comments

Comments
 (0)