Skip to content

Commit

Permalink
codeql workflow: Switch from pip to apt
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bsbernd committed Oct 20, 2024
1 parent 6171099 commit 3bf5ec7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3bf5ec7

Please sign in to comment.