diff --git a/.github/workflows/ubuntu-release.yml b/.github/workflows/ubuntu-release.yml index 228fe7f90..4ecc121b1 100644 --- a/.github/workflows/ubuntu-release.yml +++ b/.github/workflows/ubuntu-release.yml @@ -98,6 +98,17 @@ jobs: cd /usr/src/googletest/ sudo cmake . sudo cmake --build . --target install + sudo apt-get install -y g++-10 gcc-10 + + - name: Update alternatives + #mpicxx uses "g++" so we need g++ to be symbolic link to g++-10 + run: | + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10 + sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10 + sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30 + sudo update-alternatives --set cc /usr/bin/gcc + sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30 + sudo update-alternatives --set c++ /usr/bin/g++ - name: Read antares-solver version id: antares-version diff --git a/.github/workflows/ubuntu-system-deps-build.yml b/.github/workflows/ubuntu-system-deps-build.yml index e5153f2d3..4fee1e7b7 100644 --- a/.github/workflows/ubuntu-system-deps-build.yml +++ b/.github/workflows/ubuntu-system-deps-build.yml @@ -43,6 +43,17 @@ jobs: cd /usr/src/googletest/ sudo cmake . sudo cmake --build . --target install + sudo apt-get install -y g++-10 gcc-10 + + - name: Update alternatives + #mpicxx uses "g++" so we need g++ to be symbolic link to g++-10 + run: | + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10 + sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10 + sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30 + sudo update-alternatives --set cc /usr/bin/gcc + sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30 + sudo update-alternatives --set c++ /usr/bin/g++ - name: Compile Boost uses: ./.github/workflows/compile-boost