Set platform-specific naming for macOS in build process

This commit is contained in:
2025-07-26 21:34:23 +02:00
parent 440168e822
commit 1f7a282791

View File

@@ -84,6 +84,9 @@ jobs:
go build -ldflags="-s -w -X main.version=${{ github.ref_name }} -X main.commit=${{ github.sha }} -X main.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" -o "${BINARY_NAME}" ./cmd/server go build -ldflags="-s -w -X main.version=${{ github.ref_name }} -X main.commit=${{ github.sha }} -X main.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" -o "${BINARY_NAME}" ./cmd/server
# Create archive # Create archive
if [ "${{ matrix.goos }}" = "darwin" ]; then
matrix.goos="macos"
fi
ARCHIVE_NAME="llamactl-${{ github.ref_name }}-${{ matrix.goos }}-${{ matrix.goarch }}" ARCHIVE_NAME="llamactl-${{ github.ref_name }}-${{ matrix.goos }}-${{ matrix.goarch }}"
if [ "${{ matrix.goos }}" = "windows" ]; then if [ "${{ matrix.goos }}" = "windows" ]; then
zip "${ARCHIVE_NAME}.zip" "${BINARY_NAME}" zip "${ARCHIVE_NAME}.zip" "${BINARY_NAME}"