From 59652540fc598a76aa5bae877547220ca087b97c Mon Sep 17 00:00:00 2001 From: robinhundt <24554122+robinhundt@users.noreply.github.com> Date: Fri, 21 Nov 2025 14:34:30 +0100 Subject: [PATCH 1/2] Fix silent_ot_comm test --- cryprot-ot/src/silent_ot.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cryprot-ot/src/silent_ot.rs b/cryprot-ot/src/silent_ot.rs index 60898be..fa2d615 100644 --- a/cryprot-ot/src/silent_ot.rs +++ b/cryprot-ot/src/silent_ot.rs @@ -738,12 +738,12 @@ mod tests { let (s_ot, (r_ot, choices)) = tokio::try_join!( sender.correlated_send(count, delta), - receiver.correlated_receive(count, ChoiceBitPacking::Packed) + receiver.correlated_receive(count) ) .unwrap(); assert_eq!(s_ot.len(), count); - check_correlated(&r_ot, &s_ot, choices.as_deref(), delta); + check_correlated(&r_ot, &s_ot, Some(&choices), delta); } } From 71150b3337e2cac14045fb77c2ccd14bb5538065 Mon Sep 17 00:00:00 2001 From: robinhundt <24554122+robinhundt@users.noreply.github.com> Date: Fri, 21 Nov 2025 14:34:30 +0100 Subject: [PATCH 2/2] CI: Add publish workflow --- .github/workflows/publish.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..ed4f930 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +on: + push: + tags: + - "v*" + +name: Publish + +concurrency: + group: "publish" + +jobs: + publish: + name: Publish + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + components: clippy + - run: cargo test --release --workspace --features metrics --features num-traits --features tokio-rayon + - run: cargo clippy --workspace --features metrics --features num-traits --features tokio-rayon -- -Dwarnings + - run: cargo publish --workspace + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}