Skip to content

Commit

Permalink
ci: Provision swtpm
Browse files Browse the repository at this point in the history
Prep for testing luks bits in GHA.

Signed-off-by: Colin Walters <walters@verbum.org>
  • Loading branch information
cgwalters committed Jun 25, 2024
1 parent 969d032 commit 02fdbb7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@ 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
sudo apt install linux-modules-extra-$(uname -r)
sudo modprobe tpm_vtpm_proxy
sudo apt install swtpm-tools
sudo mkdir /var/tmp/swtpm; swtpm_setup --tpm-state /var/tmp/swtpm
sudo systemd-run --unit swtpm -- swtpm chardev --vtpm-proxy --tpmstate dir=/var/tmp/swtpm --tpm2
while true; do
if sudo ls /dev/tpm*; break; fi
sleep 0.1
done
- name: Integration tests
run: |
set -xeu
Expand Down

0 comments on commit 02fdbb7

Please sign in to comment.