From efd33720cdf4a0049323403df5daad0e9e894b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Tue, 30 Aug 2022 15:12:46 -0700 Subject: [PATCH] Set KERNEL and REPO_ROOT environment variable for run-qemu action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With an upcoming change we would like to invoke bpftool checks from the run-qemu action (https://github.com/libbpf/ci/pull/37). This action requires two environment variables, KERNEL and REPO_ROOT, set in order to function. Make sure to set them now. Long term we should probably make them explicit input arguments instead of implicit global state, but there are many more such instances that we need to clean up. Signed-off-by: Daniel Müller --- .github/actions/vmtest/action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/actions/vmtest/action.yml b/.github/actions/vmtest/action.yml index e85c7d0..8536f04 100644 --- a/.github/actions/vmtest/action.yml +++ b/.github/actions/vmtest/action.yml @@ -85,6 +85,9 @@ runs: image-output: '/tmp/root.img' # 5. run selftest in QEMU - name: Run selftests + env: + KERNEL: ${{ inputs.kernel }} + REPO_ROOT: ${{ github.workspace }} uses: libbpf/ci/run-qemu@master with: arch: ${{ inputs.arch }}