From 516ae7df349fd46465ae683eb79909d3901423f4 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Thu, 20 May 2021 11:50:33 -0700 Subject: [PATCH] [github-actions] pin to clang-10 for coverage (#6652) To avoid llvm gcov version mismatch. --- .github/workflows/simulation-1.1.yml | 6 +++--- .github/workflows/simulation-1.2.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/simulation-1.1.yml b/.github/workflows/simulation-1.1.yml index b0fce13fa..7a594dc7c 100644 --- a/.github/workflows/simulation-1.1.yml +++ b/.github/workflows/simulation-1.1.yml @@ -450,8 +450,8 @@ jobs: REFERENCE_DEVICE: 1 THREAD_VERSION: 1.1 VIRTUAL_TIME: 1 - CC: clang - CXX: clang++ + CC: clang-10 + CXX: clang++-10 steps: - uses: actions/checkout@v2 with: @@ -459,7 +459,7 @@ jobs: - name: Bootstrap run: | sudo rm /etc/apt/sources.list.d/* && sudo apt-get update - sudo apt-get --no-install-recommends install -y python3-setuptools python3-wheel llvm lcov + sudo apt-get --no-install-recommends install -y clang-10 clang++-10 python3-setuptools python3-wheel llvm lcov python3 -m pip install -r tests/scripts/thread-cert/requirements.txt sudo python3 -m pip install git+https://github.com/openthread/pyspinel - name: Build diff --git a/.github/workflows/simulation-1.2.yml b/.github/workflows/simulation-1.2.yml index d6ce63453..df19047e4 100644 --- a/.github/workflows/simulation-1.2.yml +++ b/.github/workflows/simulation-1.2.yml @@ -55,7 +55,7 @@ jobs: CXX: ${{ matrix.compiler.cxx }} strategy: matrix: - compiler: [{c: "gcc", cxx: "g++", gcov: "gcc"}, { c: "clang", cxx: "clang++", gcov: "llvm"}] + compiler: [{c: "gcc", cxx: "g++", gcov: "gcc"}, { c: "clang-10", cxx: "clang++-10", gcov: "llvm"}] arch: ["m32", "m64"] steps: - uses: actions/checkout@v2 @@ -65,7 +65,7 @@ jobs: run: | sudo dpkg --add-architecture i386 sudo apt-get update - sudo apt-get --no-install-recommends install -y ninja-build python3-setuptools python3-wheel llvm lcov + sudo apt-get --no-install-recommends install -y clang-10 clang++-10 ninja-build python3-setuptools python3-wheel llvm lcov sudo apt-get --no-install-recommends install -y g++-multilib libreadline-dev:i386 libncurses-dev:i386 python3 -m pip install -r tests/scripts/thread-cert/requirements.txt - name: Build