configure neovim properly for building

This commit is contained in:
Matthew Stobbs
2025-03-16 17:38:54 -06:00
parent efd62e94eb
commit 43f539253f
4 changed files with 73 additions and 20 deletions

View File

@@ -3,15 +3,17 @@
- name: Clone neovim git repository
ansible.builtin.git:
depth: 1
dest: "{{ d_tempdir.path }}/neovim"
dest: "{{ neovim.git_path }}"
repo: "{{ neovim.git_repo }}"
version: "{{ neovim.vers }}"
recursive: true
- name: Build and install neovim
become: "{{ ext_become }}"
ansible.builtin.make:
chdir: "{{ d_tempdir.path }}/neovim"
community.general.make:
chdir: "{{ neovim.git_path }}"
params:
CMAKE_BUILD_TYPE: "{{ neovim.build_type }}"
CMAKE_INSTALL_PREFIX: "{{ path.prefix }}"
CMAKE_EXTRA_FLAGS: "-DCMAKE_INSTALL_PREFIX={{ path.prefix }}"
target: install
jobs: "{{ ansible_processor_nproc | int }}"