refactor(nvim): build from source
This commit is contained in:
parent
3b4c247ca7
commit
47e7d1b8cb
1 changed files with 45 additions and 8 deletions
|
@ -1,15 +1,52 @@
|
||||||
---
|
---
|
||||||
- name: Add neovim PPA
|
- name: Dependencies
|
||||||
apt_repository:
|
|
||||||
repo: "ppa:neovim-ppa/unstable"
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Install Neovim
|
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name:
|
name:
|
||||||
- neovim
|
- autoconf
|
||||||
|
- automake
|
||||||
|
- cmake
|
||||||
|
- curl
|
||||||
|
- doxygen
|
||||||
|
- g++
|
||||||
|
- gettext
|
||||||
|
- libtool
|
||||||
|
- libtool-bin
|
||||||
|
- ninja-build
|
||||||
|
- pkg-config
|
||||||
|
- unzip
|
||||||
state: latest
|
state: latest
|
||||||
become: true
|
become: yes
|
||||||
|
|
||||||
|
- name: Clone
|
||||||
|
ansible.builtin.git:
|
||||||
|
clone: yes
|
||||||
|
depth: 1
|
||||||
|
dest: "{{ ansible_user_dir }}/neovim"
|
||||||
|
repo: https://github.com/neovim/neovim.git
|
||||||
|
# single_branch: yes
|
||||||
|
update: yes
|
||||||
|
version: "{{ neovim_version | default('master') }}"
|
||||||
|
register: clone
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
make:
|
||||||
|
chdir: "{{ ansible_user_dir }}/neovim"
|
||||||
|
params:
|
||||||
|
CMAKE_BUILD_TYPE: RelWithDebInfo
|
||||||
|
when: clone.changed
|
||||||
|
|
||||||
|
- name: Install
|
||||||
|
make:
|
||||||
|
chdir: "{{ ansible_user_dir }}/neovim"
|
||||||
|
target: install
|
||||||
|
become: yes
|
||||||
|
when: clone.changed
|
||||||
|
|
||||||
|
- name: Remove build folder
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ ansible_user_dir }}/neovim/build"
|
||||||
|
state: absent
|
||||||
|
become: yes
|
||||||
|
|
||||||
- name: Create .config/nvim directory
|
- name: Create .config/nvim directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue