KBS: Optimize performance and memory usage #67
Workflow file for this run
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
name: kbs rust tests | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- 'kbs/**' | |
- '.github/workflows/kbs-rust.yml' | |
- 'Cargo.toml' | |
pull_request: | |
paths: | |
- 'kbs/**' | |
- '.github/workflows/kbs-rust.yml' | |
- 'Cargo.toml' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
rust: | |
- stable | |
- beta | |
- nightly | |
os: | |
- ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Code checkout | |
uses: actions/checkout@v4 | |
- name: Rust toolchain installation | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
components: rustfmt, clippy | |
target: x86_64-unknown-linux-gnu | |
- name: Building dependencies installation | |
run: | | |
sudo apt-get update && sudo apt-get install -y protobuf-compiler libprotobuf-dev libtss2-dev | |
- name: Install TPM dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libtss2-dev | |
- name: Install TDX dependencies | |
run: | | |
sudo curl -L https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | sudo apt-key add - | |
sudo echo 'deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu focal main' | sudo tee /etc/apt/sources.list.d/intel-sgx.list | |
sudo apt-get update | |
sudo apt-get install -y libtdx-attest-dev libsgx-dcap-quote-verify-dev | |
- name: KBS Build [Default] | |
working-directory: kbs | |
run: make | |
- name: KBS Build [Built-in CoCo AS, OpenSSL] | |
working-directory: kbs | |
run: make HTTPS_CRYPTO=openssl | |
- name: KBS Build [gRPC CoCo AS, RustTLS] | |
working-directory: kbs | |
run: make COCO_AS_INTEGRATE_TYPE=grpc | |
- name: build KBS for Intel Trust Authority | |
working-directory: kbs | |
run: make AS_TYPE=intel-trust-authority-as | |
- name: Lint | |
working-directory: kbs | |
run: make lint | |
- name: Format | |
working-directory: kbs | |
run: make format | |
- name: Test | |
working-directory: kbs | |
run: make check |