Skip to content

Commit 0085810

Browse files
author
Leonid Borchuk
committed
Remove execute bit from install script
1 parent 1ae579e commit 0085810

1 file changed

Lines changed: 41 additions & 41 deletions

File tree

.github/workflows/build-deb-cloudberry.yml

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ jobs:
347347
348348
cp -r "${SRC_DIR}"/devops/build/packaging/deb/ubuntu22.04/* debian/
349349
chown -R "$(whoami)" debian
350+
chmod -x debian/*install
350351
351352
# replace not supported symbols in version
352353
CBDB_VERSION=$(echo "$CBDB_VERSION" | sed "s/\//./g")
@@ -361,49 +362,48 @@ jobs:
361362
exit 1
362363
fi
363364
364-
ARCH="amd64"
365-
CBDB_PKG_VERSION=${CBDB_VERSION}-${BUILD_NUMBER}-$(git --git-dir=.git rev-list HEAD --count).$(git --git-dir=.git rev-parse --short HEAD)
366-
367-
echo "Produced artifacts"
368-
ls -l ../
369-
370-
echo "Copy artifacts to subdirectory for sign/upload"
371-
mkdir ${SRC_DIR}/deb
372-
DEB_FILE="apache-cloudberry-db-incubating_${CBDB_PKG_VERSION}"_"${ARCH}".deb
373-
DBG_DEB_FILE="apache-cloudberry-db-incubating-dbgsym_${CBDB_PKG_VERSION}"_"${ARCH}".ddeb
374-
CHANGES_DEB_FILE="apache-cloudberry-db-incubating_${CBDB_PKG_VERSION}"_"${ARCH}".changes
375-
BUILDINFO_DEB_FILE="apache-cloudberry-db-incubating_${CBDB_PKG_VERSION}"_"${ARCH}".buildinfo
376-
DSC_DEB_FILE="apache-cloudberry-db-incubating_${CBDB_PKG_VERSION}".dsc
377-
SOURCE_FILE="apache-cloudberry-db-incubating_${CBDB_PKG_VERSION}".tar.xz
378-
cp ../"${DEB_FILE}" "${SRC_DIR}/deb"
379-
cp ../"${DBG_DEB_FILE}" "${SRC_DIR}/deb"
380-
cp ../"${CHANGES_DEB_FILE}" "${SRC_DIR}/deb"
381-
cp ../"${BUILDINFO_DEB_FILE}" "${SRC_DIR}/deb"
382-
cp ../"${DSC_DEB_FILE}" "${SRC_DIR}/deb"
383-
cp ../"${SOURCE_FILE}" "${SRC_DIR}/deb"
384-
mkdir "${SRC_DIR}/deb/debian"
385-
cp debian/changelog "${SRC_DIR}/deb/debian"
386-
387-
388-
# Get package information
389-
echo "Package Information:"
390-
dpkg --info "${SRC_DIR}/deb/${DEB_FILE}"
391-
dpkg --contents "${SRC_DIR}/deb/${DEB_FILE}"
392-
393-
# Verify critical files in DEB
394-
echo "Verifying critical files in DEB..."
395-
for binary in "bin/postgres" "bin/psql"; do
396-
if ! dpkg --contents "${SRC_DIR}/deb/${DEB_FILE}" | grep -c "${binary}$"; then
397-
echo "::error::Critical binary '${binary}' not found in DEB"
398-
exit 1
399-
fi
400-
done
365+
ARCH="amd64"
366+
CBDB_PKG_VERSION=${CBDB_VERSION}-${BUILD_NUMBER}-$(git --git-dir=.git rev-list HEAD --count).$(git --git-dir=.git rev-parse --short HEAD)
367+
368+
echo "Produced artifacts"
369+
ls -l ../
370+
371+
echo "Copy artifacts to subdirectory for sign/upload"
372+
mkdir ${SRC_DIR}/deb
373+
DEB_FILE="apache-cloudberry-db-incubating_${CBDB_PKG_VERSION}"_"${ARCH}".deb
374+
DBG_DEB_FILE="apache-cloudberry-db-incubating-dbgsym_${CBDB_PKG_VERSION}"_"${ARCH}".ddeb
375+
CHANGES_DEB_FILE="apache-cloudberry-db-incubating_${CBDB_PKG_VERSION}"_"${ARCH}".changes
376+
BUILDINFO_DEB_FILE="apache-cloudberry-db-incubating_${CBDB_PKG_VERSION}"_"${ARCH}".buildinfo
377+
DSC_DEB_FILE="apache-cloudberry-db-incubating_${CBDB_PKG_VERSION}".dsc
378+
SOURCE_FILE="apache-cloudberry-db-incubating_${CBDB_PKG_VERSION}".tar.xz
379+
cp ../"${DEB_FILE}" "${SRC_DIR}/deb"
380+
cp ../"${DBG_DEB_FILE}" "${SRC_DIR}/deb"
381+
cp ../"${CHANGES_DEB_FILE}" "${SRC_DIR}/deb"
382+
cp ../"${BUILDINFO_DEB_FILE}" "${SRC_DIR}/deb"
383+
cp ../"${DSC_DEB_FILE}" "${SRC_DIR}/deb"
384+
cp ../"${SOURCE_FILE}" "${SRC_DIR}/deb"
385+
mkdir "${SRC_DIR}/deb/debian"
386+
cp debian/changelog "${SRC_DIR}/deb/debian"
387+
388+
# Get package information
389+
echo "Package Information:"
390+
dpkg --info "${SRC_DIR}/deb/${DEB_FILE}"
391+
dpkg --contents "${SRC_DIR}/deb/${DEB_FILE}"
392+
393+
# Verify critical files in DEB
394+
echo "Verifying critical files in DEB..."
395+
for binary in "bin/postgres" "bin/psql"; do
396+
if ! dpkg --contents "${SRC_DIR}/deb/${DEB_FILE}" | grep -c "${binary}$"; then
397+
echo "::error::Critical binary '${binary}' not found in DEB"
398+
exit 1
399+
fi
400+
done
401401
402-
# Record checksums
403-
echo "Calculating checksums..."
404-
sha256sum "${SRC_DIR}/deb/${DEB_FILE}" | tee -a build-logs/details/checksums.log
402+
# Record checksums
403+
echo "Calculating checksums..."
404+
sha256sum "${SRC_DIR}/deb/${DEB_FILE}" | tee -a build-logs/details/checksums.log
405405
406-
echo "Artifacts created and verified successfully"
406+
echo "Artifacts created and verified successfully"
407407
408408
409409
} 2>&1 | tee -a build-logs/details/artifact-creation.log

0 commit comments

Comments
 (0)