add zig installation via tarball
This commit is contained in:
@@ -1,23 +1,31 @@
|
||||
---
|
||||
- ansible.builtin.include_vars:
|
||||
file: ghostty.yml
|
||||
name: _ghostty
|
||||
- ansible.builtin.set_fact:
|
||||
pkgconfig_ghostty: "{{ _ghostty | ansible.builtin.combine(pkgconfig.ghostty) }}"
|
||||
|
||||
- name: ensure dependencies
|
||||
when: ansible_distribution == 'Fedora'
|
||||
block:
|
||||
- ansible.builtin.include_tasks:
|
||||
file: "pkgs/terra_repo.yml"
|
||||
when: pkgconfig_terrarepo is not defined
|
||||
|
||||
when: pkgconfig_terrarepo not defined
|
||||
|
||||
- name: append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
syspkgs: "{{ syspkgs + [ 'ghostty' ] }}"
|
||||
when: ansible_distribution == 'Fedora' or
|
||||
not pkgconfig_ghostty.build
|
||||
|
||||
- name: no ghostty for this system
|
||||
when:
|
||||
- ansible_distribution != 'Fedora'
|
||||
- ansible_system == 'Linux'
|
||||
debug:
|
||||
msg: ghostty cannot be installed this way for your distribution
|
||||
- name: build ghostty from source
|
||||
block:
|
||||
- ansible.builtin.set_fact:
|
||||
syspkgs: "{{ syspkgs + pkgconfig_ghostty.build_deps[ansible_os_family] }}"
|
||||
srcpkgs: "{{ srcpkgs + ['ghostty'] }}"
|
||||
when: (ansible_distribution != 'Fedora' and ansible_system == 'Linux') or
|
||||
pkgconfig_ghostty.build
|
||||
|
||||
- name: append ghostty to caskpkgs
|
||||
when: ansible_distribution == 'MacOSX'
|
||||
ansible.builtin.set_fact:
|
||||
caskpkgs: "{{ caskpkgs + [ 'ghostty' ] }}"
|
||||
when: ansible_distribution == 'MacOSX'
|
||||
|
||||
Reference in New Issue
Block a user