add zig installation via tarball

This commit is contained in:
Matthew Stobbs
2025-01-25 21:16:59 -07:00
parent 66eaed6e4b
commit 343765c8a6
16 changed files with 136 additions and 86 deletions

View File

@@ -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'