From 9b2dec95ab0ff3c0ebeac9db9c45453436881150 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 25 Jun 2024 16:35:46 -0400 Subject: [PATCH] ci: Provision swtpm Prep for testing luks bits in GHA. --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f2aae6a9..a240091af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,6 +78,17 @@ jobs: run: sudo rm -f /bin/skopeo /usr/bin/skopeo - name: Free up disk space on runner run: sudo ./ci/clean-gha-runner.sh + - name: Setup swtpm + run: | + set -xeu + modprobe tpm_vtpm_proxy + apt install swtpm-tools + mkdir /var/tmp/swtpm; swtpm_setup --tpm-state /var/tmp/swtpm + systemd-run --unit swtpm -- swtpm chardev --vtpm-proxy --tpmstate dir=/var/tmp/swtpm --tpm2 + while true; do + if ls /dev/tpm*; break; fi + sleep 0.1 + done - name: Integration tests run: | set -xeu