Add unit test in src/spdm #56
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: | |
paths-ignore: | |
- "**.md" | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
name: Build binary | |
env: | |
AS: nasm | |
RUST_TOOLCHAIN: nightly-2023-08-28 | |
TOOLCHAIN_PROFILE: minimal | |
jobs: | |
system_compile: | |
name: Compile the vtpmtd.bin file | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout vTPM-Td Sources | |
uses: actions/checkout@v2 | |
- name: Initialize and update submodules | |
run: git submodule update --init --recursive | |
- name: Install LLVM and Clang | |
uses: KyleMayes/install-llvm-action@v1 | |
with: | |
version: "10.0" | |
directory: ${{ runner.temp }}/llvm | |
- name: install NASM | |
uses: ilammy/setup-nasm@v1 | |
- name: Install tools for tpm-ref build | |
run: sudo apt-get install autoconf-archive pkg-config build-essential automake gcc libssl-dev | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: ${{ env.TOOLCHAIN_PROFILE }} | |
toolchain: ${{ env.RUST_TOOLCHAIN }} | |
override: true | |
components: rust-src | |
- name: Run cargo install cargo-xbuild | |
uses: actions-rs/cargo@v1 | |
with: | |
command: install | |
args: cargo-xbuild | |
- name: Preparation Work | |
run: bash sh_script/pre-build.sh | |
- name: Run cargo check | |
run: | | |
cargo check | |
- name: Build vTPM-TD | |
env: | |
CC: clang | |
AR: llvm-ar | |
run: bash sh_script/build.sh |