[scan-build] update to clang-tools-10 (#5617)

This commit is contained in:
Jonathan Hui
2020-10-07 21:18:04 -07:00
committed by GitHub
parent 58b0486bcd
commit 18344b1cb2
2 changed files with 8 additions and 8 deletions
+3 -4
View File
@@ -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
+5 -4
View File
@@ -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()