setup-cockpit/roles/neovim/tasks/build_neovim.yml
2023-05-15 09:04:07 +02:00

40 lines
824 B
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- name: Install build dependencies
become: true
ansible.builtin.apt:
name:
- ninja-build
- gettext
- cmake
- unzip
- name: Make sure build directory exists
ansible.builtin.file:
path: ~/builds
state: directory
mode: 0755
- name: Clone neovim repo
ansible.builtin.git:
repo: https://github.com/neovim/neovim
dest: ~/builds/neovim
clone: true
version: stable
depth: 1
- name: Make neovim
community.general.make:
chdir: ~/builds/neovim
params:
CMAKE_BUILD_TYPE: Release
- name: Create neovim deb package
ansible.builtin.command:
chdir: ~/builds/neovim/build
cmd: cpack -G DEB
- name: Install neovim package
become: true
ansible.builtin.apt:
deb: "{{ ansible_facts.user_dir }}/builds/neovim/build/nvim-linux64.deb"