mirror of
https://github.com/espressif/openthread.git
synced 2026-08-30 22:09:54 +00:00
[scan-build] update to clang-tools-10 (#5617)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user