From 9c4dfe3c4f7b0da802863df2bb9463c6820037f1 Mon Sep 17 00:00:00 2001 From: Lukas <129603980+itislu@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:25:15 +0000 Subject: [PATCH 1/5] ci: Fix clang-12 install issue with newest Ubuntu 24.04 image --- .github/actions/setup/action.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml index ca1f278c..03398d5f 100644 --- a/.github/actions/setup/action.yaml +++ b/.github/actions/setup/action.yaml @@ -14,6 +14,9 @@ runs: using: composite steps: - run: | + wget https://apt.llvm.org/llvm.sh + chmod +x llvm.sh + sudo ./llvm.sh 12 sudo apt-get update sudo apt-get install -y build-essential clang-12 valgrind shell: bash From 29a910eeba37409aba29de9a387c5ab7fb32c402 Mon Sep 17 00:00:00 2001 From: Lukas <129603980+itislu@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:39:06 +0000 Subject: [PATCH 2/5] ci: Specify version number for apt --- .github/actions/setup/action.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml index 03398d5f..b1edc580 100644 --- a/.github/actions/setup/action.yaml +++ b/.github/actions/setup/action.yaml @@ -14,11 +14,8 @@ runs: using: composite steps: - run: | - wget https://apt.llvm.org/llvm.sh - chmod +x llvm.sh - sudo ./llvm.sh 12 sudo apt-get update - sudo apt-get install -y build-essential clang-12 valgrind + sudo apt-get install -y build-essential clang-12=1:12.0.1-19ubuntu3 valgrind shell: bash - run: | echo "Iy" | bash -c 'bash <(curl -s https://raw.githubusercontent.com/tmatis/funcheck/main/scripts/install.sh)' From 6dc0aa5e64e44b843eb76abee0cf5c4e22d9155a Mon Sep 17 00:00:00 2001 From: Lukas <129603980+itislu@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:42:53 +0000 Subject: [PATCH 3/5] ci: Add old repo for apt to find clang-12 in --- .github/actions/setup/action.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml index b1edc580..e06ba688 100644 --- a/.github/actions/setup/action.yaml +++ b/.github/actions/setup/action.yaml @@ -14,6 +14,7 @@ runs: using: composite steps: - run: | + echo "deb http://archive.ubuntu.com/ubuntu/ jammy main universe" | sudo tee /etc/apt/sources.list.d/jammy-repositories.list sudo apt-get update sudo apt-get install -y build-essential clang-12=1:12.0.1-19ubuntu3 valgrind shell: bash From 3515ba8878cf7aa7e7a2ebaa6210d532954e6415 Mon Sep 17 00:00:00 2001 From: Lukas <129603980+itislu@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:51:57 +0000 Subject: [PATCH 4/5] ci: Manually install readline --- .github/actions/setup/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml index e06ba688..c91bbff4 100644 --- a/.github/actions/setup/action.yaml +++ b/.github/actions/setup/action.yaml @@ -16,7 +16,7 @@ runs: - run: | echo "deb http://archive.ubuntu.com/ubuntu/ jammy main universe" | sudo tee /etc/apt/sources.list.d/jammy-repositories.list sudo apt-get update - sudo apt-get install -y build-essential clang-12=1:12.0.1-19ubuntu3 valgrind + sudo apt-get install -y build-essential clang-12=1:12.0.1-19ubuntu3 valgrind libreadline-dev shell: bash - run: | echo "Iy" | bash -c 'bash <(curl -s https://raw.githubusercontent.com/tmatis/funcheck/main/scripts/install.sh)' From 32e6643b84ac80363f1de293184daf0bfa4c6a20 Mon Sep 17 00:00:00 2001 From: Lukas <129603980+itislu@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:57:40 +0000 Subject: [PATCH 5/5] ci: Separate install process of clang-12 --- .github/actions/setup/action.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml index c91bbff4..40d0eeb4 100644 --- a/.github/actions/setup/action.yaml +++ b/.github/actions/setup/action.yaml @@ -13,10 +13,14 @@ inputs: runs: using: composite steps: + - run: | + sudo apt-get update + sudo apt-get install -y build-essential valgrind libreadline-dev + shell: bash - run: | echo "deb http://archive.ubuntu.com/ubuntu/ jammy main universe" | sudo tee /etc/apt/sources.list.d/jammy-repositories.list sudo apt-get update - sudo apt-get install -y build-essential clang-12=1:12.0.1-19ubuntu3 valgrind libreadline-dev + sudo apt-get install -y clang-12=1:12.0.1-19ubuntu3 shell: bash - run: | echo "Iy" | bash -c 'bash <(curl -s https://raw.githubusercontent.com/tmatis/funcheck/main/scripts/install.sh)'