Skip to content

Initial commit.

Initial commit. #10

Workflow file for this run

name: "Rust Workflow"
on:
push:
pull_request:
jobs:
check:
name: cargo check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: sudo apt-get update && sudo apt-get install -y libtss2-dev libjson-c-dev libcurl4-openssl-dev
- run: cargo check
docs:
name: cargo doc
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: sudo apt-get update && sudo apt-get install -y libtss2-dev libjson-c-dev libcurl4-openssl-dev
- run: cargo doc --no-deps
- run: sed 's|{{URL}}|tss2_fapi_rs/index.html|g' docs/index.html.template > target/doc/index.html
- run: rm -f target/doc/help.html target/doc/settings.html
- uses: actions/upload-artifact@v4
with:
name: docs
path: target/doc/
retention-days: 90
build:
name: cargo build
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: sudo apt-get update && sudo apt-get install -y libtss2-dev libjson-c-dev libcurl4-openssl-dev
- run: cargo build --release
- uses: actions/upload-artifact@v4
with:
name: libtss2_fapi_rs
path: target/release/libtss2_fapi_rs.rlib
retention-days: 90