This repository has been archived by the owner on Sep 6, 2023. It is now read-only.
Generate tpm policies using go-tpm2 package. #132
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
pull_request: | |
name: build | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up golang | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- name: install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install bats golang make openssl swtpm tpm2-tools qemu-kvm | |
- name: build | |
run: | | |
make | |
- name: test | |
run: | | |
make test | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: trust |