Skip to content

Commit 6ba1638

Browse files
committed
CI: try caching rustls build in ~/root/rustls; add version
to the environment so it's used in the cache key.
1 parent 7950b44 commit 6ba1638

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

.github/workflows/linux.yml

+1
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ jobs:
244244
APR_VERSION=1.7.4
245245
APU_VERSION=1.6.3
246246
APU_CONFIG="--with-crypto"
247+
RUSTLS_VERSION="v0.10.0"
247248
NO_TEST_FRAMEWORK=1
248249
TEST_INSTALL=1
249250
TEST_MOD_TLS=1

test/travis_before_linux.sh

+12
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,15 @@ if test -v APU_VERSION; then
147147
install_apx apr-util ${APU_VERSION} "${APU_CONFIG}" --with-apr=$HOME/build/apr-${APR_VERSION}
148148
ldd $HOME/root/apr-util-${APU_VERSION}/lib/libaprutil-?.so || true
149149
fi
150+
151+
# Since librustls is not a package (yet) on any platform, we
152+
# build the version we want from source
153+
if test -v TEST_MOD_TLS -a -v RUSTLS_VERSION; then
154+
if ! test -d $HOME/root/rustls; then
155+
RUSTLS_HOME="$HOME/build/rustls-ffi"
156+
git clone -b "$RUSTLS_VERSION" https://github.com/rustls/rustls-ffi.git "$RUSTLS_HOME"
157+
pushd "$RUSTLS_HOME"
158+
make install DESTDIR="$HOME/root/rustls"
159+
popd
160+
fi
161+
fi

test/travis_run_linux.sh

+1-7
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,7 @@ fi
5757
# Since librustls is not a package (yet) on any platform, we
5858
# build the version we want from source
5959
if test -v TEST_MOD_TLS; then
60-
RUSTLS_HOME="$HOME/build/rustls-ffi"
61-
RUSTLS_VERSION="v0.10.0"
62-
git clone -b "$RUSTLS_VERSION" https://github.com/rustls/rustls-ffi.git "$RUSTLS_HOME"
63-
pushd "$RUSTLS_HOME"
64-
make install DESTDIR="$PREFIX"
65-
popd
66-
CONFIG="$CONFIG --with-tls --with-rustls=$PREFIX"
60+
CONFIG="$CONFIG --with-tls --with-rustls=$HOME/root/rustls"
6761
fi
6862

6963
if test -v TEST_OPENSSL3; then

0 commit comments

Comments
 (0)