From 55cc1b72a6487ce42e1dd918191a75a39f1f16af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Stolarczuk?= Date: Wed, 17 May 2023 13:53:10 +0200 Subject: [PATCH] common: clean CodeQL workflow up - get rid of redundant env variables (not used without docker), - run make command instead of calling extra script to build pmdk; the script (unnecessarily in this case) execute tests. --- .github/workflows/codeql.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1624dd270ab..b06a1d7c64a 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -5,13 +5,6 @@ name: CodeQL on: [push, pull_request, workflow_dispatch] -env: - GITHUB_REPO: pmem/pmdk - HOST_WORKDIR: /home/runner/work/pmdk/pmdk - WORKDIR: utils/gha-runners - PMDK_CC: gcc - PMDK_CXX: g++ - jobs: analyze: name: Analyze @@ -55,8 +48,8 @@ jobs: languages: ${{ matrix.language }} - name: Run the build - run: cd ${WORKDIR} && ./build-pmdk.sh - + run: make EXTRA_CFLAGS=-DUSE_VALGRIND test -j$(nproc) + - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 with: