2
0

Fix MinGW path for Windows CGO builds
Some checks failed
Build and Release / Create Release (push) Successful in 0s
Build and Release / Unit Tests (push) Successful in 3m14s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 4m36s
Build and Release / Lint (push) Successful in 4m44s
Build and Release / Build Binaries (arm64, linux, linux-latest) (push) Successful in 2m49s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Successful in 2m50s
Build and Release / Build Binaries (amd64, darwin, macos-latest) (push) Successful in 3m17s
Build and Release / Build Binaries (arm64, darwin, macos-latest) (push) Successful in 3m21s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Failing after 8h5m7s

This commit is contained in:
GitCaddy
2026-01-15 21:55:26 +00:00
parent 615d6d379a
commit eb292fa940

View File

@@ -296,7 +296,7 @@ jobs:
shell: pwsh
run: |
choco install mingw -y --no-progress
$env:PATH = "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin;$env:PATH"
$env:PATH = "C:\ProgramData\mingw64\mingw64\bin;$env:PATH"
gcc --version
- name: Build binary (Windows)
@@ -309,7 +309,7 @@ jobs:
CC: gcc
shell: pwsh
run: |
$env:PATH = "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin;$env:PATH"
$env:PATH = "C:\ProgramData\mingw64\mingw64\bin;$env:PATH"
$VERSION = (git describe --tags --always --dirty 2>$null) -replace '-gitcaddy',''
if (-not $VERSION) { $VERSION = "dev" }
$LDFLAGS = "-X main.Version=$VERSION"