mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
ci: install dependencies with a single script (#22241)
It's easier if the os-specific installations are done by the script itself
This commit is contained in:
27
.github/scripts/install_dependencies.cmake
vendored
Normal file
27
.github/scripts/install_dependencies.cmake
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
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()
|
19
.github/scripts/install_deps_ubuntu.sh
vendored
19
.github/scripts/install_deps_ubuntu.sh
vendored
@ -1,19 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
PACKAGES=(
|
||||
autoconf
|
||||
automake
|
||||
build-essential
|
||||
cmake
|
||||
cpanminus
|
||||
curl
|
||||
gettext
|
||||
libtool-bin
|
||||
locales-all
|
||||
ninja-build
|
||||
pkg-config
|
||||
unzip
|
||||
)
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y "${PACKAGES[@]}"
|
Reference in New Issue
Block a user