From f354beb253b50243476c731a62a25fcc2a1246bd Mon Sep 17 00:00:00 2001 From: ChengyuZhu6 Date: Fri, 2 Feb 2024 18:41:31 +0800 Subject: [PATCH] static-checks: Install clang in the ci environments To test PR #8484, the compilation process for the kata-agent relies on clang. There have been encountered failures on ARM, s390x, and ppc64le architectures: ppc64le: https://github.com/kata-containers/kata-containers/actions/runs/7754082828/job/21146689026?pr=8484 s390x: https://github.com/kata-containers/kata-containers/actions/runs/7754082828/job/21146689401?pr=8484 arm: https://github.com/kata-containers/kata-containers/actions/runs/7754082828/job/21146689026?pr=8484 Fixes: #9004 Signed-off-by: ChengyuZhu6 --- .github/workflows/static-checks.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/static-checks.yaml b/.github/workflows/static-checks.yaml index 0a23eb03a4..fe882e19e5 100644 --- a/.github/workflows/static-checks.yaml +++ b/.github/workflows/static-checks.yaml @@ -128,6 +128,9 @@ jobs: - name: Install protobuf-compiler if: ${{ matrix.command == 'make check' && matrix.component == 'agent' }} run: sudo apt-get -y install protobuf-compiler + - name: Install clang + if: ${{ matrix.command == 'make check' && matrix.component == 'agent' }} + run: sudo apt-get -y install clang - name: Setup XDG_RUNTIME_DIR for the `runtime` tests if: ${{ matrix.command != 'make vendor' && matrix.command != 'make check' && matrix.component == 'runtime' }} run: |