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:
81 echo "Current directory: $(Get-Location)" 81 echo "Current directory: $(Get-Location)"
82 echo "Directory contents:" 82 echo "Directory contents:"
83 dir 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 echo "Building the Windows binary..." 95 echo "Building the Windows binary..."
85 set GOOS=windows 96 set GOOS=windows
86 set GOARCH=amd64 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 if ($LASTEXITCODE -ne 0) { 100 if ($LASTEXITCODE -ne 0) {
89 echo "Build failed" 101 echo "Build failed"
90 exit 1 102 exit 1