diff --git a/.github/workflows/rust-build.yml b/.github/workflows/rust-build.yml new file mode 100644 index 0000000..83e172b --- /dev/null +++ b/.github/workflows/rust-build.yml @@ -0,0 +1,26 @@ +name: Rust Build + +on: + pull_request: + workflow_dispatch: + +permissions: + contents: read + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Build workspace + run: cargo build --workspace --all-targets --all-features \ No newline at end of file diff --git a/.github/workflows/rust-docs.yml b/.github/workflows/rust-docs.yml new file mode 100644 index 0000000..f9f1495 --- /dev/null +++ b/.github/workflows/rust-docs.yml @@ -0,0 +1,26 @@ +name: Rust Docs + +on: + pull_request: + workflow_dispatch: + +permissions: + contents: read + +env: + CARGO_TERM_COLOR: always + +jobs: + docs: + name: Documentation + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Build documentation + run: cargo doc --all \ No newline at end of file diff --git a/.github/workflows/rust-test.yml b/.github/workflows/rust-test.yml new file mode 100644 index 0000000..70d5086 --- /dev/null +++ b/.github/workflows/rust-test.yml @@ -0,0 +1,26 @@ +name: Rust Tests + +on: + pull_request: + workflow_dispatch: + +permissions: + contents: read + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + name: Tests + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Run tests + run: cargo test --all \ No newline at end of file diff --git a/README.md b/README.md index 56b6003..aa7cf0e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # The Bouncy Castle Crypto Package For Rust +[![Rust Style](https://github.com/bcgit/bc-rust/actions/workflows/rust-style.yml/badge.svg)](https://github.com/bcgit/bc-rust/actions/workflows/rust-style.yml) +[![Rust Build](https://github.com/bcgit/bc-rust/actions/workflows/rust-build.yml/badge.svg)](https://github.com/bcgit/bc-rust/actions/workflows/rust-build.yml) +[![Rust Tests](https://github.com/bcgit/bc-rust/actions/workflows/rust-test.yml/badge.svg)](https://github.com/bcgit/bc-rust/actions/workflows/rust-test.yml) +[![Rust Docs](https://github.com/bcgit/bc-rust/actions/workflows/rust-docs.yml/badge.svg)](https://github.com/bcgit/bc-rust/actions/workflows/rust-docs.yml) + > [!WARNING] > This package is currently in ALPHA, meaning that it is not complete or production-ready and will be evolving rapidly over the coming months. > We are releasing only a small set of cryptographic algorithms in order to get feedback from the community on the API and build structure.