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.
  • Loading branch information
cgwalters committed Jun 25, 2024
1 parent 969d032 commit 9b2dec9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b2dec9

Please sign in to comment.