Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
danieltrick committed Aug 23, 2024
0 parents commit a3820ec
Show file tree
Hide file tree
Showing 82 changed files with 9,423 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/rust-cargo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**/log
/**/out
/**/target/
/**/tmp
18 changes: 18 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
stages:
- build

build-pkg:
stage: build
tags:
- linux-docker-x64
image: rust:latest
script:
- apt-get update && apt-get install -y libclang-dev libtss2-dev
- cargo package
- cargo doc --no-deps
- mkdir dist
- mv target/package/tss2-fapi-rs-*.crate dist/
- mv target/doc dist/
artifacts:
paths:
- "dist"
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Change Log

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/).

## [1.0.0] - 2024-??-??

### Added
- This is the first public release of this project.
Loading

0 comments on commit a3820ec

Please sign in to comment.