Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/.ci
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2020-08-28 11:43:42 +0300
committerRobert Adam <dev@robert-adam.de>2020-08-28 15:03:18 +0300
commiteed8c44a240306d2c38b0c4554caf5cb0f347849 (patch)
tree5dc2ccc3699b604d0fd181efaea3bbe6985e7479 /.ci
parent407cdc95d7693b8a2d211c50fe4750637c325028 (diff)
CI(macOS): Use axel instead of wget
Axel is a CLI download utility that'll open multiple concurrent streams and thereby increasing the overall download speed. Ref.: https://www.linuxjournal.com/content/speed-your-downloads-axel Using axel to download the environment seems to be up to 5x faster than using wget.
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/azure-pipelines/install-environment_macos.bash9
1 files changed, 7 insertions, 2 deletions
diff --git a/.ci/azure-pipelines/install-environment_macos.bash b/.ci/azure-pipelines/install-environment_macos.bash
index 944e8da2e..b02814781 100755
--- a/.ci/azure-pipelines/install-environment_macos.bash
+++ b/.ci/azure-pipelines/install-environment_macos.bash
@@ -13,15 +13,20 @@ if [ -d $MUMBLE_ENVIRONMENT_PATH ]; then
exit 0
fi
+# We use axel to download the environment
+brew install axel
+
echo "Environment not cached. Downloading..."
-wget "$MUMBLE_ENVIRONMENT_SOURCE/$MUMBLE_ENVIRONMENT_VERSION.tar.xz"
+environmentArchive="$MUMBLE_ENVIRONMENT_VERSION.tar.xz"
+
+axel -n 10 --output="$environmentArchive" "$MUMBLE_ENVIRONMENT_SOURCE/$MUMBLE_ENVIRONMENT_VERSION.tar.xz"
echo "Extracting build environment to $MUMBLE_ENVIRONMENT_STORE..."
mkdir -p $MUMBLE_ENVIRONMENT_STORE
-tar xf "$MUMBLE_ENVIRONMENT_VERSION.tar.xz" -C $MUMBLE_ENVIRONMENT_STORE
+tar xf "$environmentArchive" -C $MUMBLE_ENVIRONMENT_STORE
chmod +x "$MUMBLE_ENVIRONMENT_PATH/installed/x64-osx/tools/Ice/slice2cpp"