Skip to content

Commit

Permalink
Disable GitHub certificate check under Ubuntu 18.04
Browse files Browse the repository at this point in the history
wget doesn't recognize it for some reason under this old OS, so just
disable it to be able to download mold there.
  • Loading branch information
vadz committed Dec 11, 2023
1 parent 957a435 commit 4a7b72e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion scripts/ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ case "$(uname)" in
# Get mold and replace the default linker with it.
mold_ver=2.4.0
mold_name=mold-${mold_ver}-$(uname -m)-linux.tar.gz
wget https://github.com/rui314/mold/releases/download/v${mold_ver}/${mold_name}
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 4a7b72e

Please sign in to comment.