Fix archive naming for macOS in build process

This commit is contained in:
2025-07-26 21:42:14 +02:00
parent 1f7a282791
commit 225c82ac02

View File

@@ -84,10 +84,11 @@ 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
# Create archive
ARCHIVE_OS="${{ matrix.goos }}"
if [ "${{ matrix.goos }}" = "darwin" ]; then
matrix.goos="macos"
ARCHIVE_OS="macos"
fi
ARCHIVE_NAME="llamactl-${{ github.ref_name }}-${{ matrix.goos }}-${{ matrix.goarch }}"
ARCHIVE_NAME="llamactl-${{ github.ref_name }}-${ARCHIVE_OS}-${{ matrix.goarch }}"
if [ "${{ matrix.goos }}" = "windows" ]; then
zip "${ARCHIVE_NAME}.zip" "${BINARY_NAME}"
echo "ASSET_PATH=${ARCHIVE_NAME}.zip" >> $GITHUB_ENV