Skip to content

Commit

Permalink
fix: install pkg-config on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Jul 5, 2024
1 parent c167a6b commit 0ae4895
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/actions/configure-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,18 @@ runs:
ls "/Applications" | grep "Xcode_"
sudo xcode-select -s "/Applications/Xcode_14.3.1.app"
echo "CPATH=$(brew --prefix)/include:$CPATH" | tee -a $GITHUB_ENV
echo "LIBRARY_PATH=$(brew --prefix)/lib:$LIBRARY_PATH" | tee -a $GITHUB_ENV
echo "CPATH=$(brew --prefix)/include" | tee -a $GITHUB_ENV
echo "LIBRARY_PATH=$(brew --prefix)/lib" | tee -a $GITHUB_ENV
shell: bash
- if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y valgrind ocl-icd-opencl-dev libssl-dev libhwloc-dev nvidia-cuda-toolkit g++-10
sudo apt-get install --no-install-recommends -y valgrind ocl-icd-opencl-dev libssl-dev libhwloc-dev nvidia-cuda-toolkit g++-10 pkg-config
# Downgrade to GCC 10, as CUDA 11 doesn't play nice with GCC 11
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-10 10
sudo update-alternatives --set c++ /usr/bin/g++-10
# Check if we need to install cuda-toolkit-12-5
sudp dpkg -L nvidia-cuda-toolkit
shell: bash
- if: runner.os == 'macOS'
run: |
Expand Down

0 comments on commit 0ae4895

Please sign in to comment.