Skip to content

Commit ea42c6e

Browse files
committed
chore: fix windows build naming
1 parent da3aed6 commit ea42c6e

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,9 @@ jobs:
7272
GOOS: ${{ matrix.goos }}
7373
GOARCH: ${{ matrix.goarch }}
7474
run: |
75-
BINARY_NAME="NetGATE"
75+
OUTPUT_NAME="NetGATE-${{ matrix.goos }}-${{ matrix.goarch }}"
7676
if [ "${{ matrix.goos }}" = "windows" ]; then
77-
BINARY_NAME="${BINARY_NAME}.exe"
78-
fi
79-
OUTPUT_NAME="${BINARY_NAME}-${{ matrix.goos }}-${{ matrix.goarch }}"
80-
if [ "${{ matrix.goos }}" = "windows" ]; then
81-
go build -v -o "${OUTPUT_NAME}"
77+
go build -v -o "${OUTPUT_NAME}.exe"
8278
else
8379
go build -v -o "${OUTPUT_NAME}"
8480
fi

0 commit comments

Comments
 (0)