From 143e169b4c44328836d61f8c47a1daeb40c598c9 Mon Sep 17 00:00:00 2001 From: Sam Wu <22262939+samjwu@users.noreply.github.com> Date: Wed, 24 Apr 2024 15:24:49 -0600 Subject: [PATCH] Install CMake, check LD_PRELOAD --- .github/workflows/codeql.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index f9bce131..4af186ab 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -64,6 +64,16 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Check LD_PRELOAD file existence + run: | + if [ ! -f "/__t/CodeQL/2.17.0/x64/codeql/tools/linux64/${LIB}_${PLATFORM}_trace.so" ]; then + echo "Error: LD_PRELOAD file not found" + exit 1 + fi + + - name: Install CMake + run: sudo apt-get install cmake # Adjust based on your package manager + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v3