install dependencies gcc-12 and disable multilib

This commit is contained in:
j.spijker@ultimaker.com 2022-08-09 12:15:45 +02:00 committed by jspijker
parent 56e5bab174
commit 265824043d

View File

@ -130,10 +130,12 @@ jobs:
if ! command -v gcc-12 &> /dev/null if ! command -v gcc-12 &> /dev/null
then then
git clone --branch releases/gcc-12 https://gcc.gnu.org/git/gcc.git gcc-source git clone --branch releases/gcc-12 https://gcc.gnu.org/git/gcc.git gcc-source
./gcc-source/contrib/download_prerequisites cd gcc-source
./contrib/download_prerequisites
cd ..
mkdir gcc-12-build mkdir gcc-12-build
cd gcc-12-build cd gcc-12-build
./../gcc-source/configure --prefix=${{ runner.tool_cache }}/gcc-12 --enable-languages=c,c++ ./../gcc-source/configure --prefix=${{ runner.tool_cache }}/gcc-12 --enable-languages=c,c++ --disable-multilib
make -j$(nproc) make -j$(nproc)
sudo make install sudo make install
echo "PATH=$PATH:${{ runner.tool_cache }}/gcc-12" >> $GITHUB_ENV echo "PATH=$PATH:${{ runner.tool_cache }}/gcc-12" >> $GITHUB_ENV