@@ -246,6 +246,41 @@ jobs:
246246 exit 1
247247 fi
248248
249+ - name : Install GCC 11 toolchain for Rocky Linux 8
250+ if : ${{ matrix.rocky-version == '8' }}
251+ run : |
252+ retry_count=0
253+ max_retries=5
254+
255+ until [ $retry_count -ge $max_retries ]; do
256+ echo "Attempt $((retry_count + 1)) of $max_retries"
257+
258+ if dnf install -y gcc-toolset-11-toolchain; then
259+ echo "GCC 11 toolchain installed successfully"
260+ break
261+ else
262+ retry_count=$((retry_count + 1))
263+ if [ $retry_count -lt $max_retries ]; then
264+ echo "Attempt $retry_count failed. Retrying in 5 seconds..."
265+ sleep 5
266+ fi
267+ fi
268+ done
269+
270+ if [ $retry_count -ge $max_retries ]; then
271+ echo "Failed to install GCC 11 toolchain after $max_retries attempts"
272+ exit 1
273+ fi
274+
275+ - name : Enable GCC 11 toolchain for Rocky Linux 8
276+ if : ${{ matrix.rocky-version == '8' }}
277+ run : |
278+ source /opt/rh/gcc-toolset-11/enable
279+ echo "CC=$(which gcc)" >> $GITHUB_ENV
280+ echo "CXX=$(which g++)" >> $GITHUB_ENV
281+ echo "PATH=$PATH" >> $GITHUB_ENV
282+ echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV
283+
249284 - name : Check out repository code
250285 uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
251286 with :
@@ -735,6 +770,11 @@ jobs:
735770 run : |
736771 python -c "import sys; print(sys.executable)"
737772
773+ - name : Install Rust toolchain
774+ uses : dtolnay/rust-toolchain@0b1efabc08b657293548b77fb76cc02d26091c7e
775+ with :
776+ toolchain : stable
777+
738778 - name : Cache CMake for Windows
739779 uses : actions/cache@v4
740780 id : windows-cmake-cache
0 commit comments