From ab16af02057e0180298106140b028ee6b038f903 Mon Sep 17 00:00:00 2001 From: Joe Zhu Date: Sun, 22 Dec 2024 14:29:47 +0800 Subject: [PATCH] Update ccpp.yml --- .github/workflows/ccpp.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index bf1055f..1503a9c 100755 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -55,6 +55,11 @@ jobs: echo "CC=ccache clang-${{ matrix.version }}" >> $GITHUB_ENV echo "CXX=ccache clang++-${{ matrix.version }}" >> $GITHUB_ENV fi + if: matrix.name == 'ubuntu-gcc-9' + run: | + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 90 + sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 90 + sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.9 90 - name: Install dependencies (macOS) if: runner.os == 'macOS'