Commit 16b4f90cb0
Unsigned
Layout: unified · split
.github/workflows/ci-cd.yml +1 −3
| @@ -75,9 +75,7 @@ jobs: | ||
| 75 | 75 | |
| 76 | 76 | - name: Build Windows binary # Run the build script to generate curd.exe |
| 77 | 77 | run: | |
| 78 | cd Build # Navigate to Build directory | |
| 79 | chmod +x buildwindows | |
| 80 | ./buildwindows | |
| 78 | .\Build\buildwindows | |
| 81 | 79 | |
| 82 | 80 | - name: Download Inno Setup # Clean up |
| 83 | 81 | run: | |
Build/buildwindows +11 −3
| @@ -1,6 +1,14 @@ | ||
| 1 | @echo off | |
| 2 | echo Starting the build process... | |
| 1 | 3 | set GOOS=windows |
| 2 | 4 | set GOARCH=amd64 |
| 5 | echo GOOS is set to %GOOS% | |
| 6 | echo GOARCH is set to %GOARCH% | |
| 7 | echo Building Go application... | |
| 3 | 8 | tree /F |
| 4 | echo Building Go application | |
| 5 | rem Build the Go application | |
| 6 | go build -o curd.exe ..\cmd\curd\main.go | |
| \ No newline at end of file | ||
| 9 | go build -o curd.exe .\cmd\curd\main.go | |
| 10 | if %ERRORLEVEL% NEQ 0 ( | |
| 11 | echo Build failed with error level %ERRORLEVEL% | |
| 12 | ) else ( | |
| 13 | echo Build completed successfully! | |
| 14 | ) | |