Commit 60bf44dcc5
Unsigned
Layout: unified · split
.github/workflows/ci-cd.yml +8 −6
| @@ -46,9 +46,11 @@ jobs: | ||
| 46 | 46 | |
| 47 | 47 | - name: Build Linux binary |
| 48 | 48 | run: | |
| 49 | outputDir="Build" # Set the output directory for Linux builds | |
| 50 | mkdir -p "$outputDir" # Create the directory if it doesn't exist | |
| 51 | go build -o "$outputDir/curd-linux" ./cmd/curd/main.go | |
| 49 | pwd | |
| 50 | tree ./ | |
| 51 | outputDir="Build" | |
| 52 | mkdir -p "$outputDir" | |
| 53 | go build -o "$outputDir/curd" ./cmd/curd/main.go | |
| 52 | 54 | |
| 53 | 55 | - name: Revert Changes in player.go |
| 54 | 56 | run: | |
| @@ -56,8 +58,8 @@ jobs: | ||
| 56 | 58 | |
| 57 | 59 | - name: Build Windows binary (cross-compile) |
| 58 | 60 | run: | |
| 59 | outputDir="Build" # Use the same name for consistency | |
| 60 | mkdir -p "$outputDir" # Create the directory if it doesn't exist | |
| 61 | outputDir="Build" | |
| 62 | mkdir -p "$outputDir" | |
| 61 | 63 | set GOOS=windows |
| 62 | 64 | set GOARCH=amd64 |
| 63 | 65 | go build -o "$outputDir\curd.exe" .\cmd\curd\main.go |
| @@ -67,7 +69,7 @@ jobs: | ||
| 67 | 69 | with: |
| 68 | 70 | name: curd-binaries |
| 69 | 71 | path: | |
| 70 | Build/curd-linux | |
| 72 | Build/curd | |
| 71 | 73 | Build/curd.exe # Include the Windows binary |
| 72 | 74 | |
| 73 | 75 | release: |