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

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 11:42:57 PDT 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-github-workflow

<details>
<summary>Changes</summary>

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.

---
Full diff: https://github.com/llvm/llvm-project/pull/66799.diff


1 Files Affected:

- (modified) .github/workflows/release-tasks.yml (+4-2) 


``````````diff
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: |

``````````

</details>


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


More information about the llvm-commits mailing list