mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-03-14 20:53:06 +00:00

Now that Travis CI decided to stop offering their services for free, we had to look for an alternative solution. GitHub Actions seems to fit the picture really well and has the benefit of being tightly integrated into GitHub (obviously). For now only shared builds for Ubuntu 18.04 and 20.04 are included. The scripts and the framework for also including static builds is part of this commit as well but as it stands the static build always failed and therefore it was given up upon for now. Adding support for other OS will require a few tweaks and a couple of new scripts but in general the framework was built with this kind of extension in mind.
25 lines
516 B
Bash
Executable file
25 lines
516 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
os="$1"
|
|
dep_type="$2"
|
|
arch="$3"
|
|
|
|
if [[ "$os" == "" || "$dep_type" == "" || "$arch" == "" ]]; then
|
|
echo "Invalid/Missing parameters"
|
|
exit 1
|
|
fi
|
|
|
|
# Turn variables into lowercase
|
|
os="${os,,}"
|
|
# only consider name up to the hyphen
|
|
os=$(sed 's/-.*//' <<< "$os")
|
|
dep_type="${dep_type,,}"
|
|
arch="${arch,,}"
|
|
|
|
echo "Installing dependencies for $os ($dep_type) - $arch"
|
|
|
|
script_dir=$(dirname "$0")
|
|
script_name="install_${os}_${dep_type}_${arch}.sh"
|
|
|
|
# Execute respective script
|
|
"$script_dir/$script_name"
|