diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f29773c3d..fbc818f01 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -93,15 +93,14 @@ jobs: script/test package scan-build: - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - name: Bootstrap run: | sudo rm /etc/apt/sources.list.d/* && sudo apt-get update - sudo apt-get remove -y clang-6.0 libclang-common-6.0-dev libclang1-6.0 libllvm6.0 - sudo apt-get autoremove - sudo apt-get --no-install-recommends install -y clang-tools + sudo apt-get remove libllvm10 + sudo apt-get --no-install-recommends install -y clang-tools-10 - name: Run run: | script/check-scan-build diff --git a/script/check-scan-build b/script/check-scan-build index 9d4292fce..fd327f78f 100755 --- a/script/check-scan-build +++ b/script/check-scan-build @@ -92,15 +92,16 @@ do_scan_build() "--enable-ncp" "--enable-radio-only" "--with-examples=simulation" + "--disable-tools" ) export CPPFLAGS="${options[*]} -DOPENTHREAD_CONFIG_NCP_SPI_ENABLE=1" - scan-build ./configure "${configure_options[@]}" - scan-build --status-bugs -analyze-headers -v make -j"${OT_BUILD_JOBS}" + scan-build-10 ./configure "${configure_options[@]}" + scan-build-10 --status-bugs -analyze-headers -v make -j"${OT_BUILD_JOBS}" export CPPFLAGS="${options[*]} -DOPENTHREAD_CONFIG_NCP_UART_ENABLE=1" - scan-build ./configure "${configure_options[@]}" - scan-build --status-bugs -analyze-headers -v make -j"${OT_BUILD_JOBS}" + scan-build-10 ./configure "${configure_options[@]}" + scan-build-10 --status-bugs -analyze-headers -v make -j"${OT_BUILD_JOBS}" } main()