refactor(nvim): move into the build directory
This commit is contained in:
parent
3dc73400dc
commit
7681c53526
|
@ -21,7 +21,7 @@
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
clone: yes
|
clone: yes
|
||||||
depth: 1
|
depth: 1
|
||||||
dest: "{{ ansible_user_dir }}/neovim"
|
dest: "{{ ansible_user_dir }}/build/neovim"
|
||||||
repo: https://github.com/neovim/neovim.git
|
repo: https://github.com/neovim/neovim.git
|
||||||
# single_branch: yes
|
# single_branch: yes
|
||||||
update: yes
|
update: yes
|
||||||
|
@ -30,21 +30,21 @@
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
make:
|
make:
|
||||||
chdir: "{{ ansible_user_dir }}/neovim"
|
chdir: "{{ ansible_user_dir }}/build/neovim"
|
||||||
params:
|
params:
|
||||||
CMAKE_BUILD_TYPE: RelWithDebInfo
|
CMAKE_BUILD_TYPE: RelWithDebInfo
|
||||||
when: clone.changed
|
when: clone.changed
|
||||||
|
|
||||||
- name: Install
|
- name: Install
|
||||||
make:
|
make:
|
||||||
chdir: "{{ ansible_user_dir }}/neovim"
|
chdir: "{{ ansible_user_dir }}/build/neovim"
|
||||||
target: install
|
target: install
|
||||||
become: yes
|
become: yes
|
||||||
when: clone.changed
|
when: clone.changed
|
||||||
|
|
||||||
- name: Remove build folder
|
- name: Remove build folder
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ ansible_user_dir }}/neovim/build"
|
path: "{{ ansible_user_dir }}/build/neovim/build"
|
||||||
state: absent
|
state: absent
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue