Skip to content

Commit

Permalink
Merge branch 'ci-debug'
Browse files Browse the repository at this point in the history
Debug and fix problem with downloading wget in ODBC CI job.

See #1110.
  • Loading branch information
vadz committed Dec 11, 2023
2 parents f6c8aa8 + 4a7b72e commit ca6a7f8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ jobs:
;;
esac
case "${{matrix.container}}" in
ubuntu:18.04)
# We need to use this option as GitHub certificate is not recognized by
# wget in this old container otherwise.
set_env_var SOCI_WGET_OPTIONS --no-check-certificate
;;
esac
if [ -n "${{matrix.cxxstd}}" ]; then
set_env_var SOCI_CXXSTD ${{matrix.cxxstd}}
fi
Expand Down
4 changes: 4 additions & 0 deletions scripts/ci/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ if [ "$SOCI_CI" != "true" ] ; then
exit 1
fi

if [ -n "$RUNNER_DEBUG" ]; then
set -x
fi

backend_settings=${SOCI_SOURCE_DIR}/scripts/ci/${SOCI_CI_BACKEND}.sh
if [ -f ${backend_settings} ]; then
. ${backend_settings}
Expand Down
6 changes: 4 additions & 2 deletions scripts/ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ case "$(uname)" in
run_apt install ${packages_to_install}

# Get mold and replace the default linker with it.
wget --quiet -O- https://github.com/rui314/mold/releases/download/v2.4.0/mold-2.4.0-$(uname -m)-linux.tar.gz | \
sudo tar -C /usr/local --strip-components=1 -xzf -
mold_ver=2.4.0
mold_name=mold-${mold_ver}-$(uname -m)-linux.tar.gz
wget $SOCI_WGET_OPTIONS https://github.com/rui314/mold/releases/download/v${mold_ver}/${mold_name}
sudo tar -C /usr/local --strip-components=1 -xzf ${mold_name}
sudo ln -sf /usr/local/bin/mold /usr/bin/ld
;;

Expand Down

0 comments on commit ca6a7f8

Please sign in to comment.