Commit e05c602a28
Unsigned
Layout: unified · split
.github/workflows/ci-cd.yml +13 −1
| @@ -81,10 +81,22 @@ jobs: | ||
| 81 | 81 | echo "Current directory: $(Get-Location)" |
| 82 | 82 | echo "Directory contents:" |
| 83 | 83 | 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 | ||
| 84 | 95 | echo "Building the Windows binary..." |
| 85 | 96 | set GOOS=windows |
| 86 | 97 | 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 | ||
| 88 | 100 | if ($LASTEXITCODE -ne 0) { |
| 89 | 101 | echo "Build failed" |
| 90 | 102 | exit 1 |