From 45e7c2cab13dfbbc41146bdf2317720d4c96fe78 Mon Sep 17 00:00:00 2001 From: Manabu Sugimoto Date: Fri, 16 Jul 2021 15:24:47 +0900 Subject: [PATCH] static-checks: Add step for installing libseccomp This adds a step for installing libseccomp because the kata-agent supports seccomp feature. Fixes: #1476 Signed-off-by: Manabu Sugimoto --- .github/workflows/static-checks.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/static-checks.yaml b/.github/workflows/static-checks.yaml index 235e7f2f8..cb37e33b3 100644 --- a/.github/workflows/static-checks.yaml +++ b/.github/workflows/static-checks.yaml @@ -67,6 +67,14 @@ jobs: PATH=$PATH:"$HOME/.cargo/bin" rustup target add x86_64-unknown-linux-musl rustup component add rustfmt clippy + - name: Setup seccomp + run: | + libseccomp_install_dir=$(mktemp -d -t libseccomp.XXXXXXXXXX) + gperf_install_dir=$(mktemp -d -t gperf.XXXXXXXXXX) + cd ${GOPATH}/src/github.com/${{ github.repository }} && ./ci/install_libseccomp.sh "${libseccomp_install_dir}" "${gperf_install_dir}" + echo "Set environment variables for the libseccomp crate to link the libseccomp library statically" + echo "LIBSECCOMP_LINK_TYPE=static" >> $GITHUB_ENV + echo "LIBSECCOMP_LIB_PATH=${libseccomp_install_dir}/lib" >> $GITHUB_ENV # Check whether the vendored code is up-to-date & working as the first thing - name: Check vendored code if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }}