Post build
Some checks failed
Builds / XTChain (linux) (push) Failing after 24s
Builds / XTChain (windows) (push) Failing after 24s

This commit is contained in:
Aiken Harris 2025-07-08 09:59:35 +02:00 committed by CodingWorkshop Signing Team
parent e691c95aee
commit 5898a2a484
Signed by: CodingWorkshop Signing Team
GPG Key ID: 6DC88369C82795D2

View File

@ -376,6 +376,7 @@ xtchain_build()
xtchain_tarball() xtchain_tarball()
{ {
local EXTENSION="" local EXTENSION=""
local LIBDIR=""
# Additional, target-specific configuration options # Additional, target-specific configuration options
case "${SYSTEM_NAME}" in case "${SYSTEM_NAME}" in
@ -398,6 +399,22 @@ xtchain_tarball()
[ ${BUILD_MINIMAL} -eq 1 ] && XTCVER="${XTCVER}-min" [ ${BUILD_MINIMAL} -eq 1 ] && XTCVER="${XTCVER}-min"
echo "${XTCVER}" > ${BINDIR}/Version echo "${XTCVER}" > ${BINDIR}/Version
# Windows target specific actions
if [ "${SYSTEM_NAME}" == "Windows" ]; then
# Replace symlinks with original files
for LINK in $(find ${BINDIR}/bin -maxdepth 1 -type l); do
cp -f --remove-destination $(readlink -e ${LINK}) ${LINK}
done
# Copy dynamic libraries
if [ ${BUILD_MINIMAL} -eq 0 ]; then
LIBDIR="$(dirname $(readlink -f $(command -v ${SYSTEM_HOST}-windres)))/../${SYSTEM_HOST}"
for DLL in $(${SYSTEM_HOST}-objdump --private-headers ${BINDIR}/bin/cmake.exe | grep "DLL Name:" | cut -d' ' -f3 | grep "lib.*.dll"); do
find ${LIBDIR} -type f -name ${DLL} -exec cp {} ${BINDIR}/bin \;
done
fi
fi
# Build tarball # Build tarball
echo ">>> Creating toolchain archive ..." echo ">>> Creating toolchain archive ..."
tar -I 'zstd -19' -cpf xtchain-${XTCVER}-${TARGET_SYSTEM}.tar.zst -C ${BINDIR} . tar -I 'zstd -19' -cpf xtchain-${XTCVER}-${TARGET_SYSTEM}.tar.zst -C ${BINDIR} .