Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish next version #22

Merged
merged 7 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ jobs:
&& startsWith(github.ref_name, 'v')
steps:
- uses: actions/checkout@v3
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
package: generic-ec
- run: cargo publish -p generic-ec --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
Expand All @@ -39,10 +35,6 @@ jobs:
&& startsWith(github.ref_name, 'core-v')
steps:
- uses: actions/checkout@v3
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
package: generic-ec-core
- run: cargo publish -p generic-ec-core --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
Expand All @@ -54,11 +46,6 @@ jobs:
github.ref_type == 'tag'
&& startsWith(github.ref_name, 'curves-v')
steps:
- uses: actions/checkout@v3
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
package: generic-ec-curves
- run: cargo publish -p generic-ec-curves --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
Expand All @@ -71,10 +58,6 @@ jobs:
&& startsWith(github.ref_name, 'zkp-v')
steps:
- uses: actions/checkout@v3
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
package: generic-ec-zkp
- run: cargo publish -p generic-ec-zkp --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,21 @@ jobs:
cache-on-failure: "true"
- name: Dry-run publish
run: cargo publish --dry-run -p ${{ matrix.package }}
check-semver:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- generic-ec
- generic-ec-core
# TODO: this fails because the currently published version doesn't compile
# by itself. A fix is present and will be published soon, uncomment this
# when it's published
# - generic-ec-curves
- generic-ec-zkp
steps:
- uses: actions/checkout@v3
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
package: ${{ matrix.package }}
2 changes: 1 addition & 1 deletion generic-ec-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "generic-ec-core"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/dfns/generic-ec"
Expand Down
4 changes: 2 additions & 2 deletions generic-ec-curves/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "generic-ec-curves"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "Elliptic curves for `generic-ec` crate"
Expand All @@ -13,7 +13,7 @@ generic-ec-core = { version = "0.1", path = "../generic-ec-core", default-featur

subtle = { version = "2.4", default-features = false }
rand_core = { version = "0.6", default-features = false }
zeroize = { version = "1", default-features = false }
zeroize = { version = "1", default-features = false, features = ["zeroize_derive"] }

crypto-bigint = { version = "0.5", default-features = false, optional = true }
elliptic-curve = { version = "0.13", default-features = false, features = ["sec1", "hash2curve"], optional = true }
Expand Down
6 changes: 3 additions & 3 deletions generic-ec-zkp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "generic-ec-zkp"
version = "0.1.2"
version = "0.2.0"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/dfns/generic-ec"
Expand All @@ -12,7 +12,7 @@ keywords = ["elliptic-curves", "zk-proof"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
generic-ec = { version = "0.1", path = "../generic-ec", default-features = false }
generic-ec = { version = "0.2", path = "../generic-ec", default-features = false }
udigest = { version = "0.1", features = ["derive"], optional = true }

subtle = { version = "2.4", default-features = false }
Expand All @@ -30,7 +30,7 @@ sha2 = "0.10"

generic-tests = "0.1"

generic-ec = { version = "0.1", path = "../generic-ec", default-features = false, features = ["all-curves"] }
generic-ec = { version = "0.2", path = "../generic-ec", default-features = false, features = ["all-curves"] }

[features]
default = ["std"]
Expand Down
2 changes: 1 addition & 1 deletion generic-ec/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "generic-ec"
version = "0.1.4"
version = "0.2.0"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/dfns/generic-ec"
Expand Down
Loading