From b7eba056b93cc396807dabf62b23bce86ec9223a Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Mon, 25 Sep 2023 14:03:34 -0300 Subject: [PATCH] workflows/release-tasks: Setup FileCheck and not for release-lit (#66799) 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. (cherry picked from commit b2247f85dc4b187dd0ebc93059a0aa42f35dd64a) --- .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 5604b48857dbe2..27e147e5a91b40 100644 --- a/.github/workflows/release-tasks.yml +++ b/.github/workflows/release-tasks.yml @@ -83,13 +83,24 @@ jobs: - name: Checkout LLVM uses: actions/checkout@v3 + - name: Setup Cpp + uses: aminya/setup-cpp@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: |