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 5df5d6f
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions .github/actions/configure-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,47 @@ runs:
echo 'GO111MODULE=on' >> $GITHUB_ENV
echo 'RUST_LOG=info' >> $GITHUB_ENV
echo "GOPATH=${HOME}/go" >> $GITHUB_ENV
echo "CPATH=/usr/include:/usr/local/include:$CPATH" >> $GITHUB_ENV
echo "LIBRARY_PATH=/usr/lib:/usr/local/lib:$LIBRARY_PATH" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
shell: bash
- run: |
echo "/usr/local/go/bin" >> $GITHUB_PATH
echo "${GOPATH}/bin" >> $GITHUB_PATH
echo "${HOME}/.cargo/bin" >> $GITHUB_PATH
echo "${HOME}/.bin" >> $GITHUB_PATH
shell: bash
- if: runner.os == 'Linux' && runner.arch == 'X64'
run: |
echo "CPATH=/usr/include/x86_64-linux-gnu:$CPATH" >> $GITHUB_ENV
echo "LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH" >> $GITHUB_ENV
shell: bash
- if: runner.os == 'Linux' && runner.arch == 'ARM64'
run: |
echo "CPATH=/usr/include/aarch64-linux-gnu:$CPATH" >> $GITHUB_ENV
echo "LIBRARY_PATH=/usr/lib/aarch64-linux-gnu:$LIBRARY_PATH" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=/usr/lib/aarch64-linux-gnu:$LD_LIBRARY_PATH" >> $GITHUB_ENV
shell: bash
- if: runner.os == 'macOS'
run: |
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:$CPATH" >> $GITHUB_ENV
echo "LIBRARY_PATH=$(brew --prefix)/lib:$LIBRARY_PATH" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=$(brew --prefix)/lib:$LD_LIBRARY_PATH" >> $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 pkgconf
# 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
shell: bash
- if: runner.os == 'Linux' && runner.arch == 'ARM64'
run: |
ls /usr/include/aarch64-linux-gnu
ls /usr/lib/aarch64-linux-gnu
shell: bash
- if: runner.os == 'macOS'
run: |
Expand Down

0 comments on commit 5df5d6f

Please sign in to comment.