Skip to content

CI: Add tpm cmd test case #54

CI: Add tpm cmd test case

CI: Add tpm cmd test case #54

Workflow file for this run

on:
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
workflow_dispatch:
name: Library Crates Unit Test
env:
AS: nasm
AR: llvm-ar
CC: clang
NIGHTLY_RUST_TOOLCHAIN: nightly-2023-08-28
TOOLCHAIN_PROFILE: minimal
jobs:
lib-test:
name: Build Library Crates
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Initialize and update submodules
run: git submodule update --init --recursive
# Install first since it's needed to build NASM
- 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 nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: ${{ env.TOOLCHAIN_PROFILE }}
toolchain: ${{ env.NIGHTLY_RUST_TOOLCHAIN }}
override: true
- name: Preparation Work
run: bash sh_script/pre-build.sh
- name: Unit Test for src/protocol
run: |
pushd src/protocol
cargo test
popd
- name: Unit Test for src/global
run: |
pushd src/global
cargo test
popd
- name: Unit Test for src/spdm
run: |
pushd src/spdm
cargo test
popd