This commit is contained in:
Fern Garden 2025-05-09 08:32:29 +08:00
parent 75cacd3182
commit 4be4c0a719
6 changed files with 75 additions and 8 deletions

View file

@ -0,0 +1,33 @@
- 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