From c49af4399adbff5cf883e94c1b63f3eeb201857f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 25 Apr 2023 22:37:20 +0300 Subject: [PATCH] github: Skip dependencies (libxml2, terminfo) in linux builds that have little value in our context The fewer dynamic library dependencies we have, the easier it is to run the binaries on other linux distributions than the one it was built on. In the docker based releases, these libraries haven't been installed and thus haven't been used so far. The docker based releases haven't linked against zlib though, but keep linking against that, since that should have a quite stable ABI and not cause much binary compatibility issues. --- .github/workflows/build.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ab71804..412c29f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,7 +59,10 @@ jobs: TAG: ${{needs.prepare.outputs.TAG}} run: | sudo apt-get update && sudo apt-get install ninja-build - ./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb + # Skip dynamic library dependencies that might make it harder to + # run the binaries on other distros (and that have little use within + # llvm-mingw). + LLVM_CMAKEFLAGS="-DLLVM_ENABLE_LIBXML2=OFF -DLLVM_ENABLE_TERMINFO=OFF" ./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb .github/workflows/store-version.sh install/llvm-mingw/versions.txt cd install DISTRO=ubuntu-$(grep DISTRIB_RELEASE /etc/lsb-release | cut -f 2 -d =)-$(uname -m) @@ -92,7 +95,10 @@ jobs: MINGW_W64_VERSION: ${{needs.prepare.outputs.MINGW_W64_VERSION}} run: | sudo apt-get update && sudo apt-get install ninja-build - ./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb --enable-asserts + # Skip dynamic library dependencies that might make it harder to + # run the binaries on other distros (and that have little use within + # llvm-mingw). + LLVM_CMAKEFLAGS="-DLLVM_ENABLE_LIBXML2=OFF -DLLVM_ENABLE_TERMINFO=OFF" ./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb --enable-asserts .github/workflows/store-version.sh install/llvm-mingw/versions.txt cd install tar -Jcf ../llvm-mingw-linux.tar.xz llvm-mingw