mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-18 13:14:34 +00:00
Fix: [CI] upgrade curl to a modern version to avoid patching other tools
This commit is contained in:
parent
3fec8ece5a
commit
086bd00f5d
21
.github/workflows/release-linux.yml
vendored
21
.github/workflows/release-linux.yml
vendored
@ -33,12 +33,23 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
tar -xf source.tar.gz --strip-components=1
|
tar -xf source.tar.gz --strip-components=1
|
||||||
|
|
||||||
# dtolnay/rust-toolchain uses a curl argument (--retry-connrefused) that the curl shipped with our container doesn't support.
|
# curl is too old for most of the tools to work properly. For example,
|
||||||
# So we need to do one part ourselves; the action takes over the rest and prepares the setup further.
|
# rust-toolchain doesn't work properly, neither vcpkg caching.
|
||||||
- name: Prepare Rust toolchain
|
# The easier solution here is to upgrade curl.
|
||||||
|
- name: Update curl
|
||||||
run: |
|
run: |
|
||||||
curl --proto '=https' --tlsv1.2 --retry 10 --location --silent --show-error --fail "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
|
yum install -y \
|
||||||
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH
|
openssl-devel \
|
||||||
|
# EOF
|
||||||
|
|
||||||
|
mkdir /curl
|
||||||
|
cd /curl
|
||||||
|
curl -o curl-7.81.0.zip https://curl.se/download/curl-7.81.0.zip
|
||||||
|
unzip curl-7.81.0.zip
|
||||||
|
cd curl-7.81.0
|
||||||
|
./configure --with-ssl --with-zlib --prefix=/usr --libdir=/usr/lib64
|
||||||
|
make -j $(nproc)
|
||||||
|
make install
|
||||||
|
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
Loading…
Reference in New Issue
Block a user