Merge pull request #14 from puiterwijk/cifix

Fix CI
This commit is contained in:
Patrick Uiterwijk 2021-12-08 11:49:59 +01:00 committed by GitHub
commit f243c42828
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,14 +13,30 @@ jobs:
name: Perform tests name: Perform tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: fedora:latest container: fedora:latest
defaults:
run:
working-directory: ./clevis-pin-tpm2
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
path: clevis-pin-tpm2
- name: Check out the policy signtool
uses: actions/checkout@v2
with:
path: clevis-pin-tpm2-signtool
repository: puiterwijk/clevis-pin-tpm2-signtool
- name: Install dependencies - name: Install dependencies
run: | run: |
dnf install -y \ dnf install -y \
tpm2-tss-devel \ tpm2-tss-devel clevis \
swtpm swtpm-tools \ swtpm swtpm-tools \
rust cargo clippy rust cargo clippy \
golang
- name: Remove clevis-pin-tpm2
run: |
dnf erase -y clevis-pin-tpm2
- name: Build
run: cargo build
- name: Start swtpm - name: Start swtpm
run: | run: |
mkdir /tmp/tpmdir mkdir /tmp/tpmdir