From 5fb21551a7fef6c1fa720982befcc47a77be95d0 Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 19:34:53 -0500 Subject: [PATCH 01/19] Install gcc-10 --- .github/workflows/unit-tests.yaml | 4 ++++ tools/scripts/install-gcc-10.sh | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 tools/scripts/install-gcc-10.sh diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 4826565c..344cf265 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -43,6 +43,10 @@ jobs: name: "Install coreutils (for md5sum)" run: "brew install coreutils" + - if: "matrix.os == 'ubuntu-20.04'" + name: "Install gcc-10 (for c++20)" + run: "sudo ${{github.workspace}}/tools/scripts/install-gcc-10.sh" + - name: "Log tool versions" run: |- md5sum --version diff --git a/tools/scripts/install-gcc-10.sh b/tools/scripts/install-gcc-10.sh new file mode 100644 index 00000000..d35785b4 --- /dev/null +++ b/tools/scripts/install-gcc-10.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +# Exit on any error +set -e + +# Error on undefined variable +set -u + +apt-get update +DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ + g++ \ + g++-10 \ + gcc \ + gcc-10 + +# Add alternatives for cpp-10, gcc-10, and g++-10 +# NOTE: We use a low priority to avoid affecting the prioritization of any existing alternatives +# on the user's system. +update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-10 0 \ + --slave /usr/share/man/man1/cc.1.gz cc.1.gz /usr/share/man/man1/gcc.1.gz +update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-10 0 \ + --slave /usr/share/man/man1/c++.1.gz c++.1.gz /usr/share/man/man1/g++.1.gz +update-alternatives --install /lib/cpp cpp /usr/bin/cpp-10 0 + +update-alternatives --set cc /usr/bin/gcc-10 +update-alternatives --set c++ /usr/bin/g++-10 +update-alternatives --set cpp /usr/bin/cpp-10 From c1564716dc8bb3c56faa222b094ceed69933c555 Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 19:40:40 -0500 Subject: [PATCH 02/19] lint --- src/main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 324fa36f..ee0ecb39 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,7 +1,14 @@ +#include #include #include +template +requires std::integral +[[nodiscard]] auto square(T x) -> T { + return x * x; + } + [[nodiscard]] auto main() -> int { - std::cout << ystdlib::testlib::hello() << '\n'; + std::cout << square(ystdlib::testlib::hello().size()) << '\n'; return 0; } From 9cf997720c42cf37ca5aae854ea584332b35878c Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 19:46:05 -0500 Subject: [PATCH 03/19] Add exec mode --- tools/scripts/install-gcc-10.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 tools/scripts/install-gcc-10.sh diff --git a/tools/scripts/install-gcc-10.sh b/tools/scripts/install-gcc-10.sh old mode 100644 new mode 100755 From 7b5372c7da7774802d1607bbf340d71d434925da Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 19:52:24 -0500 Subject: [PATCH 04/19] Remove update alternatives --- tools/scripts/install-gcc-10.sh | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tools/scripts/install-gcc-10.sh b/tools/scripts/install-gcc-10.sh index d35785b4..b67b74af 100755 --- a/tools/scripts/install-gcc-10.sh +++ b/tools/scripts/install-gcc-10.sh @@ -12,16 +12,3 @@ DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ g++-10 \ gcc \ gcc-10 - -# Add alternatives for cpp-10, gcc-10, and g++-10 -# NOTE: We use a low priority to avoid affecting the prioritization of any existing alternatives -# on the user's system. -update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-10 0 \ - --slave /usr/share/man/man1/cc.1.gz cc.1.gz /usr/share/man/man1/gcc.1.gz -update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-10 0 \ - --slave /usr/share/man/man1/c++.1.gz c++.1.gz /usr/share/man/man1/g++.1.gz -update-alternatives --install /lib/cpp cpp /usr/bin/cpp-10 0 - -update-alternatives --set cc /usr/bin/gcc-10 -update-alternatives --set c++ /usr/bin/g++-10 -update-alternatives --set cpp /usr/bin/cpp-10 From ce6007c8309674fa66e8e3137782247a052b6fac Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 19:57:19 -0500 Subject: [PATCH 05/19] lint --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index ee0ecb39..c65d5a8c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2,11 +2,13 @@ #include #include +namespace { template requires std::integral [[nodiscard]] auto square(T x) -> T { return x * x; - } +} +}; // namespace [[nodiscard]] auto main() -> int { std::cout << square(ystdlib::testlib::hello().size()) << '\n'; From 48c8e9ba22a06f78e560e56757e3b1216889948c Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 20:03:45 -0500 Subject: [PATCH 06/19] Update alternatives --- tools/scripts/install-gcc-10.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/scripts/install-gcc-10.sh b/tools/scripts/install-gcc-10.sh index b67b74af..0f08f908 100755 --- a/tools/scripts/install-gcc-10.sh +++ b/tools/scripts/install-gcc-10.sh @@ -12,3 +12,12 @@ DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ g++-10 \ gcc \ gcc-10 + +# Add alternatives for cpp-10, gcc-10, and g++-10 +# NOTE: We use a low priority to avoid affecting the prioritization of any existing alternatives +# on the user's system. +update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-10 0 \ + --slave /usr/share/man/man1/cc.1.gz cc.1.gz /usr/share/man/man1/gcc.1.gz +update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-10 0 \ + --slave /usr/share/man/man1/c++.1.gz c++.1.gz /usr/share/man/man1/g++.1.gz +update-alternatives --install /lib/cpp cpp /usr/bin/cpp-10 0 From d57cf29bdd90e46a621e2aece16cb8af85eef73b Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 20:03:59 -0500 Subject: [PATCH 07/19] set-alternatives --- tools/scripts/install-gcc-10.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/scripts/install-gcc-10.sh b/tools/scripts/install-gcc-10.sh index 0f08f908..d35785b4 100755 --- a/tools/scripts/install-gcc-10.sh +++ b/tools/scripts/install-gcc-10.sh @@ -21,3 +21,7 @@ update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-10 0 \ update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-10 0 \ --slave /usr/share/man/man1/c++.1.gz c++.1.gz /usr/share/man/man1/g++.1.gz update-alternatives --install /lib/cpp cpp /usr/bin/cpp-10 0 + +update-alternatives --set cc /usr/bin/gcc-10 +update-alternatives --set c++ /usr/bin/g++-10 +update-alternatives --set cpp /usr/bin/cpp-10 From e2b4dd7e78500eaa14d6ba5025ec9b9889561151 Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 20:17:08 -0500 Subject: [PATCH 08/19] use bashrc --- tools/scripts/install-gcc-10.sh | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/tools/scripts/install-gcc-10.sh b/tools/scripts/install-gcc-10.sh index d35785b4..f3394599 100755 --- a/tools/scripts/install-gcc-10.sh +++ b/tools/scripts/install-gcc-10.sh @@ -13,15 +13,7 @@ DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ gcc \ gcc-10 -# Add alternatives for cpp-10, gcc-10, and g++-10 -# NOTE: We use a low priority to avoid affecting the prioritization of any existing alternatives -# on the user's system. -update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-10 0 \ - --slave /usr/share/man/man1/cc.1.gz cc.1.gz /usr/share/man/man1/gcc.1.gz -update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-10 0 \ - --slave /usr/share/man/man1/c++.1.gz c++.1.gz /usr/share/man/man1/g++.1.gz -update-alternatives --install /lib/cpp cpp /usr/bin/cpp-10 0 +echo "export CC=/usr/bin/gcc-10" >> ~/.bashrc +echo "export CXX=/usr/bin/g++-10" >> ~/.bashrc -update-alternatives --set cc /usr/bin/gcc-10 -update-alternatives --set c++ /usr/bin/g++-10 -update-alternatives --set cpp /usr/bin/cpp-10 +source ~/.bashrc From 619a06471d7f705114b240d6682742cad7304516 Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 20:20:10 -0500 Subject: [PATCH 09/19] Fix --- .github/workflows/unit-tests.yaml | 6 +++++- tools/scripts/install-gcc-10.sh | 5 ----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 344cf265..95e6bcc6 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -45,7 +45,11 @@ jobs: - if: "matrix.os == 'ubuntu-20.04'" name: "Install gcc-10 (for c++20)" - run: "sudo ${{github.workspace}}/tools/scripts/install-gcc-10.sh" + run: |- + sudo ${{github.workspace}}/tools/scripts/install-gcc-10.sh + echo "export CC=/usr/bin/gcc-10" >> ~/.bashrc + echo "export CXX=/usr/bin/g++-10" >> ~/.bashrc + source ~/.bashrc - name: "Log tool versions" run: |- diff --git a/tools/scripts/install-gcc-10.sh b/tools/scripts/install-gcc-10.sh index f3394599..b67b74af 100755 --- a/tools/scripts/install-gcc-10.sh +++ b/tools/scripts/install-gcc-10.sh @@ -12,8 +12,3 @@ DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ g++-10 \ gcc \ gcc-10 - -echo "export CC=/usr/bin/gcc-10" >> ~/.bashrc -echo "export CXX=/usr/bin/g++-10" >> ~/.bashrc - -source ~/.bashrc From fadc67791a88624a08ae3d33adcd6c748c1bceab Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 20:24:55 -0500 Subject: [PATCH 10/19] debug --- .github/workflows/unit-tests.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 95e6bcc6..f0b54879 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -50,6 +50,8 @@ jobs: echo "export CC=/usr/bin/gcc-10" >> ~/.bashrc echo "export CXX=/usr/bin/g++-10" >> ~/.bashrc source ~/.bashrc + ls ~/.bashrc + cat ~/.bashrc - name: "Log tool versions" run: |- From 8f1a99d711aa1e71713c3bae4c9b8a28471fbf8b Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 20:28:23 -0500 Subject: [PATCH 11/19] print gcc-10 paths --- .github/workflows/unit-tests.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index f0b54879..a71b7710 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -52,6 +52,8 @@ jobs: source ~/.bashrc ls ~/.bashrc cat ~/.bashrc + command -v gcc-10 + command -v g++-10 - name: "Log tool versions" run: |- From e920627e5860970e0c7daa15345534c1d35afde9 Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 20:31:14 -0500 Subject: [PATCH 12/19] Try specify in cmake command --- taskfiles/build.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/taskfiles/build.yaml b/taskfiles/build.yaml index 83123a48..b8efdc61 100644 --- a/taskfiles/build.yaml +++ b/taskfiles/build.yaml @@ -11,6 +11,8 @@ tasks: cmds: - >- cmake + -DCMAKE_C_COMPILER=/usr/bin/gcc-10 + -DCMAKE_CXX_COMPILER=/usr/bin/g++-10 --build "{{.G_BUILD_DIR}}" --parallel {{numCPU}} --target {{range .TARGETS}}{{.}} {{end}} From 9697fadb0da20e536871fbfbc6c5daa9ccb797f9 Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 20:44:51 -0500 Subject: [PATCH 13/19] use symlink --- .github/workflows/unit-tests.yaml | 7 ------- taskfiles/build.yaml | 2 -- tools/scripts/install-gcc-10.sh | 4 ++++ 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index a71b7710..33dfcf98 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -47,13 +47,6 @@ jobs: name: "Install gcc-10 (for c++20)" run: |- sudo ${{github.workspace}}/tools/scripts/install-gcc-10.sh - echo "export CC=/usr/bin/gcc-10" >> ~/.bashrc - echo "export CXX=/usr/bin/g++-10" >> ~/.bashrc - source ~/.bashrc - ls ~/.bashrc - cat ~/.bashrc - command -v gcc-10 - command -v g++-10 - name: "Log tool versions" run: |- diff --git a/taskfiles/build.yaml b/taskfiles/build.yaml index b8efdc61..83123a48 100644 --- a/taskfiles/build.yaml +++ b/taskfiles/build.yaml @@ -11,8 +11,6 @@ tasks: cmds: - >- cmake - -DCMAKE_C_COMPILER=/usr/bin/gcc-10 - -DCMAKE_CXX_COMPILER=/usr/bin/g++-10 --build "{{.G_BUILD_DIR}}" --parallel {{numCPU}} --target {{range .TARGETS}}{{.}} {{end}} diff --git a/tools/scripts/install-gcc-10.sh b/tools/scripts/install-gcc-10.sh index b67b74af..954b6ca7 100755 --- a/tools/scripts/install-gcc-10.sh +++ b/tools/scripts/install-gcc-10.sh @@ -12,3 +12,7 @@ DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ g++-10 \ gcc \ gcc-10 + +ln -s -f /usr/bin/gcc-10 /usr/bin/cc +ln -s -f /usr/bin/g++-10 /usr/bin/c++ +ln -s -f /usr/bin/cpp-10 /usr/bin/cpp From e7d68376efcc5c9eb0847ae2908d7acb6e7c63e8 Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 20:48:41 -0500 Subject: [PATCH 14/19] style fix --- .github/workflows/unit-tests.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 33dfcf98..0e172891 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -45,15 +45,14 @@ jobs: - if: "matrix.os == 'ubuntu-20.04'" name: "Install gcc-10 (for c++20)" - run: |- - sudo ${{github.workspace}}/tools/scripts/install-gcc-10.sh + run: "sudo ${{github.workspace}}/tools/scripts/install-gcc-10.sh" - name: "Log tool versions" run: |- - md5sum --version - python --version - tar --version - task --version + command -v md5sum + command -v python + command -v tar + command -v task # TODO: Change the task to run all unittests once any unittest is added. Until then we check # that building the project succeeds. From 85d81743fba5544de15db7c3b77268be3dd94163 Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 20:55:25 -0500 Subject: [PATCH 15/19] Inline bash script --- .github/workflows/unit-tests.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 0e172891..37863ea9 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -45,7 +45,13 @@ jobs: - if: "matrix.os == 'ubuntu-20.04'" name: "Install gcc-10 (for c++20)" - run: "sudo ${{github.workspace}}/tools/scripts/install-gcc-10.sh" + run: |- + apt-get update DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ + g++-10 \ + gcc-10 + ln -s -f /usr/bin/gcc-10 /usr/bin/cc + ln -s -f /usr/bin/g++-10 /usr/bin/c++ + ln -s -f /usr/bin/cpp-10 /usr/bin/cpp - name: "Log tool versions" run: |- From 37270dfe79e51101bb2d6ddba5d9bb4f4680d004 Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 20:57:14 -0500 Subject: [PATCH 16/19] Fix --- .github/workflows/unit-tests.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 37863ea9..015d6786 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -46,7 +46,8 @@ jobs: - if: "matrix.os == 'ubuntu-20.04'" name: "Install gcc-10 (for c++20)" run: |- - apt-get update DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ + sudo apt-get update + sudo DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ g++-10 \ gcc-10 ln -s -f /usr/bin/gcc-10 /usr/bin/cc From e5fe2305309f5ecc8f33371789753bdd5eed22ee Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 21:00:40 -0500 Subject: [PATCH 17/19] Chain cmds --- .github/workflows/unit-tests.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 015d6786..0ffb1ac0 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -46,13 +46,13 @@ jobs: - if: "matrix.os == 'ubuntu-20.04'" name: "Install gcc-10 (for c++20)" run: |- - sudo apt-get update - sudo DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ - g++-10 \ - gcc-10 - ln -s -f /usr/bin/gcc-10 /usr/bin/cc - ln -s -f /usr/bin/g++-10 /usr/bin/c++ - ln -s -f /usr/bin/cpp-10 /usr/bin/cpp + sudo bash -c '{ + apt-get update; + DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y g++-10 gcc-10; + ln --symbolic --force /usr/bin/gcc-10 /usr/bin/cc; + ln --symbolic --force /usr/bin/g++-10 /usr/bin/c++; + ln --symbolic --force /usr/bin/cpp-10 /usr/bin/cpp; + }' - name: "Log tool versions" run: |- From 5d928856479f917ca1c9335c90ea83033f260a00 Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 21:02:26 -0500 Subject: [PATCH 18/19] Remove local script --- tools/scripts/install-gcc-10.sh | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100755 tools/scripts/install-gcc-10.sh diff --git a/tools/scripts/install-gcc-10.sh b/tools/scripts/install-gcc-10.sh deleted file mode 100755 index 954b6ca7..00000000 --- a/tools/scripts/install-gcc-10.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash - -# Exit on any error -set -e - -# Error on undefined variable -set -u - -apt-get update -DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ - g++ \ - g++-10 \ - gcc \ - gcc-10 - -ln -s -f /usr/bin/gcc-10 /usr/bin/cc -ln -s -f /usr/bin/g++-10 /usr/bin/c++ -ln -s -f /usr/bin/cpp-10 /usr/bin/cpp From 90bac9bc12f6c5477b48c78b98b4000df1f4407a Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Tue, 4 Feb 2025 21:08:13 -0500 Subject: [PATCH 19/19] expand sudos --- .github/workflows/unit-tests.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 0ffb1ac0..9b6ff03b 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -46,13 +46,13 @@ jobs: - if: "matrix.os == 'ubuntu-20.04'" name: "Install gcc-10 (for c++20)" run: |- - sudo bash -c '{ - apt-get update; - DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y g++-10 gcc-10; - ln --symbolic --force /usr/bin/gcc-10 /usr/bin/cc; - ln --symbolic --force /usr/bin/g++-10 /usr/bin/c++; - ln --symbolic --force /usr/bin/cpp-10 /usr/bin/cpp; - }' + sudo apt-get update + sudo DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ + g++-10 \ + gcc-10 + sudo ln --symbolic --force /usr/bin/gcc-10 /usr/bin/cc + sudo ln --symbolic --force /usr/bin/g++-10 /usr/bin/c++ + sudo ln --symbolic --force /usr/bin/cpp-10 /usr/bin/cpp - name: "Log tool versions" run: |-