Skip to content

Commit 6b311a1

Browse files
authored
Merge pull request #19 from robinhundt/add-publish-workflow
Add publish workflow
2 parents 2920852 + 71150b3 commit 6b311a1

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
push:
3+
tags:
4+
- "v*"
5+
6+
name: Publish
7+
8+
concurrency:
9+
group: "publish"
10+
11+
jobs:
12+
publish:
13+
name: Publish
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v5
17+
- uses: dtolnay/rust-toolchain@master
18+
with:
19+
toolchain: stable
20+
components: clippy
21+
- run: cargo test --release --workspace --features metrics --features num-traits --features tokio-rayon
22+
- run: cargo clippy --workspace --features metrics --features num-traits --features tokio-rayon -- -Dwarnings
23+
- run: cargo publish --workspace
24+
env:
25+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

cryprot-ot/src/silent_ot.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,12 +738,12 @@ mod tests {
738738

739739
let (s_ot, (r_ot, choices)) = tokio::try_join!(
740740
sender.correlated_send(count, delta),
741-
receiver.correlated_receive(count, ChoiceBitPacking::Packed)
741+
receiver.correlated_receive(count)
742742
)
743743
.unwrap();
744744

745745
assert_eq!(s_ot.len(), count);
746746

747-
check_correlated(&r_ot, &s_ot, choices.as_deref(), delta);
747+
check_correlated(&r_ot, &s_ot, Some(&choices), delta);
748748
}
749749
}

0 commit comments

Comments
 (0)