Skip to content

Commit

Permalink
Possible CI fix for linux?
Browse files Browse the repository at this point in the history
  • Loading branch information
vimarsh6739 committed Jan 14, 2025
1 parent ff78f0d commit 8e605a5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,18 @@ jobs:
- name: add llvm
run: |
if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
sudo apt-get update
sudo apt-get install -y git gcc g++ #python3 python3-dev python3-pip
sudo apt-get install -y git gcc g++ gcc-12 g++-12 #python3 python3-dev python3-pip
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 100
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 50
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 50
sudo update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-12 100
sudo update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-11 50
sudo update-alternatives --set g++ /usr/bin/g++-12
sudo update-alternatives --set gcc /usr/bin/gcc-12
sudo update-alternatives --set cpp-bin /usr/bin/cpp-12
#sudo python3 -m pip install --upgrade lit
#- run: python3 -m pip install --user numpy
fi
Expand Down

0 comments on commit 8e605a5

Please sign in to comment.