From f05cdcf87686f080464979375e900f9be453eb4d Mon Sep 17 00:00:00 2001 From: Robert Konicar <xkonicar@fi.muni.cz> Date: Mon, 21 Oct 2024 15:13:11 +0200 Subject: [PATCH] ansible: Fix llvm release sources. --- ansible/pontos.yml | 3 ++- ansible/roles/llvm_deb/tasks/main.yml | 34 +++++++++++++++++++++++++-- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/ansible/pontos.yml b/ansible/pontos.yml index 4e62f72..7fc12c6 100644 --- a/ansible/pontos.yml +++ b/ansible/pontos.yml @@ -5,6 +5,7 @@ llvm10_state: absent llvm11_state: present llvm12_state: present + llvm14_state: present llvm16_state: present llvm17_state: absent gh_cli_state: present @@ -53,7 +54,7 @@ - import_role: name: surveyor - when: inventory_hostname == "pontos08.fi.muni.cz" or inventory_hostname == "pontos05.fi.muni.cz" + when: inventory_hostname == "pontos08.fi.muni.cz" or inventory_hostname == "pontos05.fi.muni.cz" or inventory_hostname == "pontos04.fi.muni.cz" - name: "cgroups v1" lineinfile: diff --git a/ansible/roles/llvm_deb/tasks/main.yml b/ansible/roles/llvm_deb/tasks/main.yml index c0cad90..75ccdcc 100644 --- a/ansible/roles/llvm_deb/tasks/main.yml +++ b/ansible/roles/llvm_deb/tasks/main.yml @@ -97,6 +97,38 @@ # # note: libunwind is not installed as it can conflict with system one # state: "{{ llvm13_state }}" +- name: "LLVM 14 repository" + apt_repository: + repo: deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-14 main + filename: llvm14 + state: present + +- name: "LLVM 14 (& tools) {{ llvm14_state }}" + apt: + pkg: + - libllvm14 + - llvm-14 + - llvm-14-dev + - llvm-14-doc + - llvm-14-examples + - llvm-14-runtime + - clang-14 + - clang-tools-14 + - clang-14-doc + - libclang-common-14-dev + - libclang-14-dev + - libclang1-14 + - clang-format-14 + - clangd-14 + - libfuzzer-14-dev + - lldb-14 + - lld-14 + - libc++-14-dev + - libc++abi-14-dev + - libclc-14-dev + # note: libunwind is not installed as it can conflict with system one + state: "{{ llvm14_state }}" + - name: "LLVM 16 repository" apt_repository: repo: deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-16 main @@ -105,7 +137,6 @@ - name: "LLVM 16 (& tools) {{ llvm16_state }}" apt: - default_release: llvm-toolchain-bullseye-16 pkg: - libllvm16 - llvm-16 @@ -142,7 +173,6 @@ - name: "LLVM 17 (& tools) {{ llvm17_state }}" apt: - default_release: llvm-toolchain-bullseye-17 pkg: - libllvm17 - llvm-17 -- GitLab