[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
Mon Sep 25 08:13:22 PDT 2023


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

>From b64b21faf1d008968ecf101ea385e5c0f4217f12 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] workflows/release-tasks: Setup FileCheck and not for
 release-lit

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

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

Fixes #64892.
---
 .github/workflows/release-tasks.yml | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/release-tasks.yml b/.github/workflows/release-tasks.yml
index 656b8c49c556173..62aa56ea67b8094 100644
--- a/.github/workflows/release-tasks.yml
+++ b/.github/workflows/release-tasks.yml
@@ -81,13 +81,24 @@ jobs:
       - name: Checkout LLVM
         uses: actions/checkout at v4
 
+      - name: Setup Cpp
+        uses: aminya/setup-cpp at v1
+        with:
+          compiler: llvm-16.0.6
+          cmake: true
+          ninja: true
+
       - name: Install dependencies
-        run: sudo apt-get install -y python3-setuptools
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y python3-setuptools python3-psutil
 
       - name: Test lit
         run: |
-          cd llvm/utils/lit
-          python3 lit.py tests
+          mkdir build && cd build
+          export FILECHECK_OPTS='-dump-input-filter=all -vv -color'
+          cmake ../llvm -DCMAKE_BUILD_TYPE=Release -G Ninja
+          ninja -v -j $(nproc) check-lit
 
       - name: Package lit
         run: |



More information about the llvm-commits mailing list