diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-02-07 09:27:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-07 09:27:51 +0100 |
commit | adae075fcffe0b5d1a790c41c083b78db27ba80b (patch) | |
tree | 434dc49e3eeb07a510117b52ab6e8696b4405808 /ci/common/build.sh | |
parent | 1391385ba9f83d32f3b6fc54587f03a1d34960d9 (diff) | |
download | rneovim-adae075fcffe0b5d1a790c41c083b78db27ba80b.tar.gz rneovim-adae075fcffe0b5d1a790c41c083b78db27ba80b.tar.bz2 rneovim-adae075fcffe0b5d1a790c41c083b78db27ba80b.zip |
ci: remove unnecessary variables and functions (#22150)
Diffstat (limited to 'ci/common/build.sh')
-rw-r--r-- | ci/common/build.sh | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/ci/common/build.sh b/ci/common/build.sh deleted file mode 100644 index b1ea2270c0..0000000000 --- a/ci/common/build.sh +++ /dev/null @@ -1,58 +0,0 @@ -_stat() { - if test "${CI_OS_NAME}" = osx ; then - stat -f %Sm "${@}" - else - stat -c %y "${@}" - fi -} - -build_deps() { - if test "${FUNCTIONALTEST}" = "functionaltest-lua" ; then - DEPS_CMAKE_FLAGS="${DEPS_CMAKE_FLAGS} -DUSE_BUNDLED_LUA=ON" - fi - - mkdir -p "${DEPS_BUILD_DIR}" - - # Use cached dependencies if $CACHE_MARKER exists. - if test -f "${CACHE_MARKER}"; then - echo "Using third-party dependencies from cache (last update: $(_stat "${CACHE_MARKER}"))." - cp -a "${CACHE_NVIM_DEPS_DIR}"/. "${DEPS_BUILD_DIR}" - fi - - # Even if we're using cached dependencies, run CMake and make to - # update CMake configuration and update to newer deps versions. - cd "${DEPS_BUILD_DIR}" - echo "Configuring with '${DEPS_CMAKE_FLAGS}'." - # shellcheck disable=SC2086 - CC= cmake -G Ninja ${DEPS_CMAKE_FLAGS} "${CI_BUILD_DIR}/cmake.deps/" - - ninja || exit 1 - - cd "${CI_BUILD_DIR}" -} - -build_nvim() { - check_core_dumps --delete quiet - - if test -n "${CLANG_SANITIZER}" ; then - CMAKE_FLAGS="${CMAKE_FLAGS} -DCLANG_${CLANG_SANITIZER}=ON" - fi - - mkdir -p "${BUILD_DIR}" - cd "${BUILD_DIR}" - echo "Configuring with '${CMAKE_FLAGS} $*'." - # shellcheck disable=SC2086 - cmake -G Ninja ${CMAKE_FLAGS} "$@" "${CI_BUILD_DIR}" - - echo "Building nvim." - ninja nvim || exit 1 - - # Invoke nvim to trigger *San early. - if ! (bin/nvim --version && bin/nvim -u NONE -e -cq | cat -vet) ; then - check_sanitizer "${LOG_DIR}" - exit 1 - fi - check_sanitizer "${LOG_DIR}" - - cd "${CI_BUILD_DIR}" -} |