From 8e605a5bf9914819411e0deacbae1aa2c0179b5a Mon Sep 17 00:00:00 2001 From: Vimarsh Sathia Date: Tue, 14 Jan 2025 13:28:56 -0600 Subject: [PATCH] Possible CI fix for linux? --- .github/workflows/build.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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