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