mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
ci: replace cmake script with bash script (#22246)
Bash has better error handling than cmake, and seem overall slightly more suited to scripting than cmake.
This commit is contained in:
27
.github/scripts/install_dependencies.cmake
vendored
27
.github/scripts/install_dependencies.cmake
vendored
@@ -1,27 +0,0 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
if(APPLE)
|
||||
execute_process(COMMAND brew update --quiet)
|
||||
execute_process(COMMAND brew install automake ninja)
|
||||
if(TEST_DEPS)
|
||||
execute_process(COMMAND brew install cpanminus)
|
||||
endif()
|
||||
else()
|
||||
# Assuming ubuntu for now. May expand if required.
|
||||
set(PACKAGES
|
||||
autoconf
|
||||
automake
|
||||
build-essential
|
||||
curl
|
||||
gettext
|
||||
libtool-bin
|
||||
locales-all
|
||||
ninja-build
|
||||
pkg-config
|
||||
unzip)
|
||||
execute_process(COMMAND sudo apt-get update)
|
||||
execute_process(COMMAND sudo apt-get install -y ${PACKAGES})
|
||||
if(TEST_DEPS)
|
||||
execute_process(COMMAND sudo apt-get install -y cpanminus)
|
||||
endif()
|
||||
endif()
|
10
.github/scripts/install_deps.sh
vendored
Executable file
10
.github/scripts/install_deps.sh
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
os=$(uname -s)
|
||||
if [[ $os == Linux ]]; then
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y autoconf automake build-essential cmake curl gettext libtool-bin locales-all ninja-build pkg-config unzip "$@"
|
||||
elif [[ $os == Darwin ]]; then
|
||||
brew update --quiet
|
||||
brew install automake ninja "$@"
|
||||
fi
|
Reference in New Issue
Block a user