From 43bc8468e87e8613c1b6b412b9c6f1da05ded5a6 Mon Sep 17 00:00:00 2001 From: officialfrancismendoza Date: Wed, 15 Jul 2026 20:49:02 +0700 Subject: [PATCH 1/6] Added ci.yml to run unit tests, but also check format, run clippy, and build workspace (#45) --- .github/workflows/ci.yml | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4c517a6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,45 @@ +name: Rust CI + +on: + push: + branches: + - release/0.1.2alpha + + pull_request: + branches: + - release/0.1.2alpha + + workflow_dispatch: + +permissions: + contents: read + +env: + CARGO_TERM_COLOR: always + RUSTFLAGS: "-D warnings" + +jobs: + test: + name: Format, lint, build, and test + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy + + - name: Check formatting + run: cargo fmt --all -- --check + + - name: Run Clippy + run: cargo clippy --workspace --all-targets --all-features + + - name: Build workspace + run: cargo build --workspace --all-targets --all-features + + - name: Run tests + run: cargo test --all \ No newline at end of file From 27e2574027deaeaad708f1c4334746c435f407d9 Mon Sep 17 00:00:00 2001 From: officialfrancismendoza Date: Fri, 17 Jul 2026 03:31:37 +0700 Subject: [PATCH 2/6] Added badges for new workflows and existing style workflow (#45) --- README.md | 5 +++++ 1 file changed, 5 insertions(+) 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. From 2a17ce2f585f4267d191cd574a0d20b2913e07e6 Mon Sep 17 00:00:00 2001 From: officialfrancismendoza Date: Fri, 17 Jul 2026 03:33:40 +0700 Subject: [PATCH 3/6] Add initial rust-build.yml (#45) --- .github/workflows/rust-build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/rust-build.yml diff --git a/.github/workflows/rust-build.yml b/.github/workflows/rust-build.yml new file mode 100644 index 0000000..ff670eb --- /dev/null +++ b/.github/workflows/rust-build.yml @@ -0,0 +1,25 @@ +name: Rust Build + +on: + pull_request: + +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 + uses: dtolnay/rust-toolchain@stable + + - name: Build workspace + run: cargo build --workspace --all-targets --all-features \ No newline at end of file From 6116291cccfc752ef8acede74ea6e74223d1ec00 Mon Sep 17 00:00:00 2001 From: officialfrancismendoza Date: Fri, 17 Jul 2026 03:33:54 +0700 Subject: [PATCH 4/6] Add initial rust-docs.yml (#45) --- .github/workflows/rust-docs.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/rust-docs.yml diff --git a/.github/workflows/rust-docs.yml b/.github/workflows/rust-docs.yml new file mode 100644 index 0000000..838eb85 --- /dev/null +++ b/.github/workflows/rust-docs.yml @@ -0,0 +1,25 @@ +name: Rust Docs + +on: + pull_request: + +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 + uses: dtolnay/rust-toolchain@stable + + - name: Build documentation + run: cargo doc --all \ No newline at end of file From 0bd460f9ed809e6256f9a78ebe31cefeafee9ffb Mon Sep 17 00:00:00 2001 From: officialfrancismendoza Date: Fri, 17 Jul 2026 03:34:11 +0700 Subject: [PATCH 5/6] Add initial rust-test.yml (#45) --- .github/workflows/rust-test.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/rust-test.yml diff --git a/.github/workflows/rust-test.yml b/.github/workflows/rust-test.yml new file mode 100644 index 0000000..ff670eb --- /dev/null +++ b/.github/workflows/rust-test.yml @@ -0,0 +1,25 @@ +name: Rust Build + +on: + pull_request: + +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 + uses: dtolnay/rust-toolchain@stable + + - name: Build workspace + run: cargo build --workspace --all-targets --all-features \ No newline at end of file From 1c888b90c31c4fc6be16ca9c5c4f9c26675427f1 Mon Sep 17 00:00:00 2001 From: officialfrancismendoza Date: Fri, 17 Jul 2026 03:34:47 +0700 Subject: [PATCH 6/6] Added workflow dispatch (#45) --- .github/workflows/ci.yml | 45 -------------------------------- .github/workflows/rust-build.yml | 3 ++- .github/workflows/rust-docs.yml | 3 ++- .github/workflows/rust-test.yml | 13 ++++----- 4 files changed, 11 insertions(+), 53 deletions(-) delete mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 4c517a6..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Rust CI - -on: - push: - branches: - - release/0.1.2alpha - - pull_request: - branches: - - release/0.1.2alpha - - workflow_dispatch: - -permissions: - contents: read - -env: - CARGO_TERM_COLOR: always - RUSTFLAGS: "-D warnings" - -jobs: - test: - name: Format, lint, build, and test - runs-on: ubuntu-latest - - steps: - - name: Check out repository - uses: actions/checkout@v4 - - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable - with: - components: rustfmt, clippy - - - name: Check formatting - run: cargo fmt --all -- --check - - - name: Run Clippy - run: cargo clippy --workspace --all-targets --all-features - - - name: Build workspace - run: cargo build --workspace --all-targets --all-features - - - name: Run tests - run: cargo test --all \ No newline at end of file diff --git a/.github/workflows/rust-build.yml b/.github/workflows/rust-build.yml index ff670eb..83e172b 100644 --- a/.github/workflows/rust-build.yml +++ b/.github/workflows/rust-build.yml @@ -2,6 +2,7 @@ name: Rust Build on: pull_request: + workflow_dispatch: permissions: contents: read @@ -18,7 +19,7 @@ jobs: - name: Check out repository uses: actions/checkout@v4 - - name: Install Rust + - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable - name: Build workspace diff --git a/.github/workflows/rust-docs.yml b/.github/workflows/rust-docs.yml index 838eb85..f9f1495 100644 --- a/.github/workflows/rust-docs.yml +++ b/.github/workflows/rust-docs.yml @@ -2,6 +2,7 @@ name: Rust Docs on: pull_request: + workflow_dispatch: permissions: contents: read @@ -18,7 +19,7 @@ jobs: - name: Check out repository uses: actions/checkout@v4 - - name: Install Rust + - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable - name: Build documentation diff --git a/.github/workflows/rust-test.yml b/.github/workflows/rust-test.yml index ff670eb..70d5086 100644 --- a/.github/workflows/rust-test.yml +++ b/.github/workflows/rust-test.yml @@ -1,7 +1,8 @@ -name: Rust Build +name: Rust Tests on: pull_request: + workflow_dispatch: permissions: contents: read @@ -10,16 +11,16 @@ env: CARGO_TERM_COLOR: always jobs: - build: - name: Build + test: + name: Tests runs-on: ubuntu-latest steps: - name: Check out repository uses: actions/checkout@v4 - - name: Install Rust + - 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 + - name: Run tests + run: cargo test --all \ No newline at end of file