38 lines
847 B
YAML
38 lines
847 B
YAML
- name: Install prerequisite APT packages
|
|
# https://github.com/neovim/neovim/wiki/Building-Neovim#build-prerequisites
|
|
become: true
|
|
apt:
|
|
state: latest
|
|
update_cache: yes
|
|
cache_valid_time: 86400 # One day
|
|
pkg:
|
|
- ninja-build
|
|
- gettext
|
|
- libtool
|
|
- libtool-bin
|
|
- autoconf
|
|
- automake
|
|
- cmake
|
|
- g++
|
|
- pkg-config
|
|
- unzip
|
|
- curl
|
|
- doxygen
|
|
- name: Pull neovim repository
|
|
become: true
|
|
git:
|
|
repo: https://github.com/neovim/neovim.git
|
|
dest: ~/neovim
|
|
- name: Build neovim
|
|
become: true
|
|
make:
|
|
chdir: ~/neovim
|
|
params:
|
|
CMAKE_BUILD_TYPE: RelWithDebInfo
|
|
changed_when: false # I lie a bit, but neovim makefile doesn't cooperate
|
|
- name: Install neovim
|
|
become: true
|
|
make:
|
|
chdir: ~/neovim
|
|
target: install
|
|
changed_when: false # Idem
|