[llvm] workflows/release-tasks: Setup FileCheck and not for release-lit (PR #66799)

Tulio Magno Quites Machado Filho via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 21 07:45:30 PDT 2023


https://github.com/tuliom updated https://github.com/llvm/llvm-project/pull/66799

>From 1ce8ec595ec5bdf92266b86ee51c0ff726470487 Mon Sep 17 00:00:00 2001
From: Tulio Magno Quites Machado Filho <tuliom at redhat.com>
Date: Tue, 19 Sep 2023 15:21:57 -0300
Subject: [PATCH 1/2] workflows/release-tasks: Setup FileCheck and not for
 release-lit

lit tests require commands FileCheck and not. They must be available in
the PATH.

Reuse the tools provided by Ubuntu and create local symlinks in order to
deal with the versioning suffix.

This also guarantees that python3-psutil is installed in order to enable
more tests.

Fixes #64892.
---
 .github/workflows/release-tasks.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/release-tasks.yml b/.github/workflows/release-tasks.yml
index 013714005d1124e..b3da8c5b47da0ef 100644
--- a/.github/workflows/release-tasks.yml
+++ b/.github/workflows/release-tasks.yml
@@ -84,12 +84,14 @@ jobs:
         uses: actions/checkout at v4
 
       - name: Install dependencies
-        run: sudo apt-get install -y python3-setuptools
+        run: sudo apt-get install -y python3-setuptools python3-psutil llvm-15-tools
 
       - name: Test lit
         run: |
           cd llvm/utils/lit
-          python3 lit.py tests
+          ln -s /usr/bin/FileCheck-15 ./FileCheck
+          ln -s /usr/bin/not-15 ./not
+          PATH=$(pwd):$PATH python3 lit.py tests
 
       - name: Package lit
         run: |

>From dc38ba6bab203ca6551bfdc4f6b9c401c8161bd6 Mon Sep 17 00:00:00 2001
From: Tulio Magno Quites Machado Filho <tuliom at redhat.com>
Date: Thu, 21 Sep 2023 11:44:25 -0300
Subject: [PATCH 2/2] fixup! workflows/release-tasks: Setup FileCheck and not
 for release-lit

---
 .github/workflows/release-tasks.yml | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/release-tasks.yml b/.github/workflows/release-tasks.yml
index b3da8c5b47da0ef..a195aae50f74ab3 100644
--- a/.github/workflows/release-tasks.yml
+++ b/.github/workflows/release-tasks.yml
@@ -84,14 +84,21 @@ jobs:
         uses: actions/checkout at v4
 
       - name: Install dependencies
-        run: sudo apt-get install -y python3-setuptools python3-psutil llvm-15-tools
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y python3-setuptools python3-psutil clang cmake
+
+      - name: Build lit requirements
+        run: |
+          mkdir build && cd build
+          cmake ../llvm -DCMAKE_BUILD_TYPE=Release
+          cmake --build utils/FileCheck/ -j $(nproc)
+          cmake --build utils/not/ -j $(nproc)
 
       - name: Test lit
         run: |
           cd llvm/utils/lit
-          ln -s /usr/bin/FileCheck-15 ./FileCheck
-          ln -s /usr/bin/not-15 ./not
-          PATH=$(pwd):$PATH python3 lit.py tests
+          PATH=$(pwd)/../../../build/bin:$PATH python3 lit.py tests
 
       - name: Package lit
         run: |



More information about the llvm-commits mailing list