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