Commit e05c602a28

e05c602a28295dc0d78910c355947864fd0e1f62

parent: c0c992f933

Unsigned

Wraient <wraient.911@gmail.com> · 2024-10-26 19:42 UTC

kill me

Layout: unified · split

.github/workflows/ci-cd.yml +13 −1
@@ -81,10 +81,22 @@ jobs:
8181 echo "Current directory: $(Get-Location)"
8282 echo "Directory contents:"
8383 dir
84 echo "Building the Windows binary..."
85
86 $outputDir = "D:\a\curd\curd\Build\Build"
87
88 if (-Not (Test-Path $outputDir)) {
89 New-Item -ItemType Directory -Path $outputDir
90 echo "Created directory: $outputDir"
91 } else {
92 echo "Directory already exists: $outputDir"
93 }
94
8495 echo "Building the Windows binary..."
8596 set GOOS=windows
8697 set GOARCH=amd64
87 go build -o curd.exe .\cmd\curd\main.go
98 go build -o "$outputDir\curd.exe" .\cmd\curd\main.go
99
88100 if ($LASTEXITCODE -ne 0) {
89101 echo "Build failed"
90102 exit 1