tools/static-checks: Install clang

Without this library the builds are failing with the following error:

```
...
error: failed to run custom build command for `devicemapper-sys v0.1.5`

Caused by: process didn't exit successfully:
    `/kata-containers/src/agent/target/release/build/devicemapper-sys-d8eae524a127e049/build-script-build`
    (exit status: 101) --- stderr thread 'main' panicked at 'Unable to
    find libclang: "couldn't find any valid shared libraries matching:
    ['libclang.so', 'libclang-*.so', 'libclang.so.*', 'libclang-*.so.*'],
    set the `LIBCLANG_PATH` environment variable to a path where one of
    these files can be found (invalid: [])"',
    /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.63.0/./lib.rs:2338:31
```

Fixes: #7580

Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
This commit is contained in:
Suraj Deshmukh 2023-08-15 21:51:29 +00:00
parent 1ec85d7485
commit 32d347aa25
No known key found for this signature in database
GPG Key ID: 5A97ADAC923EB8C8
2 changed files with 4 additions and 2 deletions

View File

@ -42,7 +42,8 @@ jobs:
sudo apt-get install -y --no-install-recommends \
build-essential \
haveged \
libdevmapper-dev
libdevmapper-dev \
clang
- name: Install Go
uses: actions/setup-go@v3
with:

View File

@ -47,7 +47,8 @@ RUN apt-get update && \
protobuf-compiler \
gettext-base \
umoci \
kmod
kmod \
clang
# aarch64 requires this name -- link for all
RUN ln -s /usr/bin/musl-gcc "/usr/bin/$(uname -m)-linux-musl-gcc"