33 lines
692 B
YAML
33 lines
692 B
YAML
- name: Install dependencies
|
|
apt:
|
|
pkg:
|
|
- ninja-build
|
|
- gettext
|
|
- cmake
|
|
- unzip
|
|
- curl
|
|
|
|
- name: Clone neovim repository
|
|
ansible.builtin.git:
|
|
repo: "https://github.com/neovim/neovim"
|
|
dest: "{{ neovim_src_dir }}"
|
|
version: stable
|
|
clone: yes
|
|
update: yes
|
|
force: yes
|
|
|
|
- name: Check if recently built
|
|
ansible.builtin.find:
|
|
paths: "{{ neovim_binary_dir }}"
|
|
patterns: nvim
|
|
age: 1d
|
|
register: days
|
|
|
|
- name: Build neovim
|
|
when: days.matched != '0'
|
|
community.general.make:
|
|
chdir: "{{ neovim_src_dir }}"
|
|
params:
|
|
CMAKE_BUILD_TYPE: Release
|
|
CMAKE_INSTALL_PREFIX: "{{ neovim_prefix_dir }}"
|
|
target: install
|