diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 28fd00238..5fcabffe4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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