From cbc00e64169a6cc5ae32646ceb867781e83a40f8 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Tue, 7 Jun 2022 14:37:26 +0200 Subject: [PATCH] Use gcc-11 for build-ubuntu-static-libs --- .github/workflows/c-cpp.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index bab28b2..0a998c8 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -56,8 +56,10 @@ jobs: steps: - name: Install dependencies run: | + sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test sudo apt update - sudo apt install -y git build-essential cmake autoconf libgss-dev + sudo apt install -y git build-essential cmake autoconf libgss-dev gcc-11 g++-11 + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11 - name: Checkout repository uses: actions/checkout@v2