Skip to content

Commit 45047a6

Browse files
ci: Enable TPM for some tests
QEMU won't let us test both TPM versions at the same time, so enable TPM v1 for the x86_64 test and TPM v2 for the x86 32-bit test. The choice of which one gets which version is arbitrary.
1 parent c3cc11e commit 45047a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/rust.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ jobs:
4242
- name: Install qemu and OVMF
4343
run: |
4444
sudo apt-get update
45-
sudo apt-get install qemu-system-x86 ovmf -y
45+
sudo apt-get install qemu-system-x86 ovmf swtpm -y
4646
4747
- name: Build (without unstable)
4848
run: cargo xtask build --target x86_64
4949

5050
- name: Run VM tests
51-
run: cargo xtask run --target x86_64 --headless --ci
51+
run: cargo xtask run --target x86_64 --headless --ci --tpm=v1
5252
timeout-minutes: 2
5353

5454
test_ia32:
@@ -61,13 +61,13 @@ jobs:
6161
- name: Install qemu and OVMF
6262
run: |
6363
sudo apt-get update
64-
sudo apt-get install qemu-system-x86 ovmf-ia32 -y
64+
sudo apt-get install qemu-system-x86 ovmf-ia32 swtpm -y
6565
6666
- name: Build
6767
run: cargo xtask build --target ia32
6868

6969
- name: Run VM tests
70-
run: cargo xtask run --target ia32 --headless --ci
70+
run: cargo xtask run --target ia32 --headless --ci --tpm=v2
7171
timeout-minutes: 2
7272

7373
test:

0 commit comments

Comments
 (0)