From 3bf5ec7aff683d67f602db3490874fe108378aa0 Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Sun, 20 Oct 2024 09:36:14 +0200 Subject: [PATCH] codeql workflow: Switch from pip to apt On some runs: Run pip install --break-system-packages -r requirements.txt .... no such option: --break-system-packages Error: Process completed with exit code 2. On other runs it refuses to install and asks for that option as it refuses to override system packages. Also require ubuntu-latest only, as MacOS is not supported at all by libfuse. --- .github/workflows/codeql.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 0992bb1..9af813b 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -25,7 +25,7 @@ jobs: # - https://gh.io/supported-runners-and-hardware-resources # - https://gh.io/using-larger-runners (GitHub.com only) # Consider using larger runners or machines with greater resources for possible analysis time improvements. - runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + runs-on: ${{ 'ubuntu-latest' }} permissions: # required for all workflows security-events: write @@ -69,7 +69,7 @@ jobs: - if: matrix.build-mode == 'manual' shell: bash run: | - pip install --break-system-packages -r requirements.txt + sudo apt install meson ninja-build python3-pytest meson setup build --buildtype=debug meson compile -C build -- 2.30.2