Skip to content

Commit

Permalink
Fix CI: CodeQL Setup (#732)
Browse files Browse the repository at this point in the history
Fix broken Python setup in CodeQL CI.
  • Loading branch information
ax3l authored Oct 10, 2024
1 parent a4107e4 commit 48bb008
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,29 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.x'

- name: Install Packages
run: |
sudo apt-get update
sudo apt-get install --yes cmake openmpi-bin libfftw3-dev libfftw3-mpi-dev libopenmpi-dev libhdf5-openmpi-dev
python -m pip install --upgrade pip
python -m pip install --upgrade pipx
python -m pip install --upgrade wheel
python -m pip install --upgrade cmake
export CMAKE="$HOME/.local/bin/cmake" && echo "CMAKE=$CMAKE" >> $GITHUB_ENV
python -m pip install --upgrade numpy
python -m pip install --upgrade mpi4py
python -m pip install --upgrade pytest
python -m pip install --upgrade cmake
python -m pipx install cmake
- name: Configure (C++)
if: ${{ matrix.language == 'cpp' }}
run: |
$CMAKE -S . -B build -DImpactX_FFT=ON -DImpactX_PYTHON=OFF
cmake -S . -B build -DImpactX_FFT=ON -DImpactX_PYTHON=OFF
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand All @@ -64,7 +70,7 @@ jobs:
- name: Build (C++)
if: ${{ matrix.language == 'cpp' }}
run: |
$CMAKE --build build -j 4
cmake --build build -j 4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
Expand Down

0 comments on commit 48bb008

Please sign in to comment.