-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bdbef72
Showing
82 changed files
with
9,472 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: "Cargo CI/CD" | ||
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 | ||
|
||
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 | ||
|
||
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: cp -f docs/public_html/index.html target/doc/index.html | ||
- run: rm -f target/doc/.lock | ||
- uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: target/doc/ | ||
|
||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
# TODO: Re-enabled, once GitHub pages have been activated! | ||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
# deploy: | ||
# name: deploy pages | ||
# needs: docs | ||
# if: github.ref == 'refs/heads/main' | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# pages: write | ||
# id-token: write | ||
# environment: | ||
# name: github-pages | ||
# url: ${{ steps.deployment.outputs.page_url }} | ||
# steps: | ||
# - name: Deploy to GitHub Pages | ||
# id: deployment | ||
# uses: actions/deploy-pages@v4 | ||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/**/log | ||
/**/out | ||
/**/target/ | ||
/**/tmp |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
stages: | ||
- check | ||
- build | ||
|
||
cargo check: | ||
stage: check | ||
tags: | ||
- linux-docker-x64 | ||
image: rust:latest | ||
script: | ||
- apt-get update && apt-get install -y libclang-dev libtss2-dev | ||
- cargo check | ||
|
||
cargo doc: | ||
stage: build | ||
tags: | ||
- linux-docker-x64 | ||
image: rust:latest | ||
script: | ||
- apt-get update && apt-get install -y libclang-dev libtss2-dev | ||
- cargo doc --no-deps | ||
- cp -f docs/public_html/index.html target/doc | ||
artifacts: | ||
paths: | ||
- "target/doc" | ||
|
||
cargo build: | ||
stage: build | ||
tags: | ||
- linux-docker-x64 | ||
image: rust:latest | ||
script: | ||
- apt-get update && apt-get install -y libclang-dev libtss2-dev | ||
- cargo build --release | ||
artifacts: | ||
paths: | ||
- "target/release/*.rlib" |
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
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. |
Oops, something went wrong.