Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
6831127
Merge pull request #737 from lorbax/ElligatorSwift
GitGab19 Feb 14, 2024
81c8603
fix certificate validation
plebhash Feb 8, 2024
cd905eb
add clarification comment for certificate verification
plebhash Feb 9, 2024
04151b3
rename tp_authority_public_key variables
plebhash Feb 9, 2024
f5349fc
fix comment
plebhash Feb 9, 2024
60afe46
verify certificate against authority_pk
plebhash Feb 9, 2024
75e8e1d
rename responder_authority_pk
plebhash Feb 9, 2024
b5346ac
fix jd-client for new TP authority certificate validation
plebhash Feb 10, 2024
3b5cd45
add comments for TP authority key
plebhash Feb 13, 2024
d5e31fd
Remove old release action, Add library release (fixed) action, Add bi…
UnidenifiedUser Feb 15, 2024
3fc1989
Add feature to common toml
UnidenifiedUser Feb 15, 2024
6d28b0f
Bumb version numnber so that we can test if cargo release from github…
UnidenifiedUser Feb 15, 2024
0859fbd
Merge pull request #755 from Fi3/FixReleases
Fi3 Feb 15, 2024
ea807a6
Bumb version numnber so that we can test if cargo release from github…
UnidenifiedUser Feb 15, 2024
89ec9db
Merge pull request #756 from Fi3/FixReleases
Fi3 Feb 15, 2024
476469c
Bumb version numnber so that we can test if cargo release from github…
UnidenifiedUser Feb 15, 2024
3719433
Merge pull request #757 from Fi3/FixReleases
Fi3 Feb 15, 2024
4c4043a
Update release-libs.yaml
Fi3 Feb 15, 2024
708d42c
Update release-libs.yaml
Fi3 Feb 15, 2024
129305d
Update release-libs.yaml
Fi3 Feb 15, 2024
8291283
Update release-libs.yaml
Fi3 Feb 15, 2024
f8401c2
Update release-libs.yaml
Fi3 Feb 15, 2024
5dc846d
Update release-libs.yaml
Fi3 Feb 15, 2024
0792aa7
Update release-libs.yaml
Fi3 Feb 15, 2024
750c0b6
Update Cargo.toml
Fi3 Feb 15, 2024
4a0857c
Update Cargo.toml
Fi3 Feb 15, 2024
b19deea
Update release-libs.yaml
Fi3 Feb 15, 2024
6a3ee3b
Update release-libs.yaml
Fi3 Feb 15, 2024
71dca06
Fix cargo toml for bip-32-key-derivation
UnidenifiedUser Feb 15, 2024
1d35942
Merge pull request #758 from Fi3/Fixbip32KeyDerivation
Fi3 Feb 15, 2024
b27d8a5
Update Cargo.toml
Fi3 Feb 15, 2024
18699dd
Update Cargo.toml
Fi3 Feb 15, 2024
240ae9f
add tp_authority_public_key to test configs
plebhash Feb 15, 2024
392c654
clippy
plebhash Feb 15, 2024
e9f16e6
change tp_authority_public_key for tests
plebhash Feb 15, 2024
28df4e1
allow null tp_authority_public_key
plebhash Feb 15, 2024
05a41f9
remove tp_authority_public_key from test configs
plebhash Feb 15, 2024
3af5a04
Merge branch 'main' into fix-certificate-verify
plebhash Feb 15, 2024
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
Original file line number Diff line number Diff line change
@@ -1,53 +1,18 @@
# This workflow is used to publish SV2 crates to cratesio as well as releasing binaries of the roles
# (translator, pool, mining_proxy) to github. The github releases will fail if there are no tags available
# so the `autoversion` workflow must be ran and the resulting PR must be merged at least once before this will
# release the binaries to github.

# as well as releasing binaries of the roles
# (translator, pool, mining_proxy) to github.
# If the binary releases do fail to due to not having tags, force run the `autoversion` workflow
# on the main branch and merge the resulting PR to create the tags and move them to the main branch.

# This should be disabled for forks

name: Release

name: Release Binaries
on:
# Manually run by going to "Actions/Release" in Github and running the workflow
workflow_dispatch:

jobs:
crates_publish:
name: Release
github_release_translator:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-musl

steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Login
run: cargo login ${{ secrets.CRATES_IO_DEPLOY_KEY }}

- name: Install cargo-release
run: cargo install cargo-release

# Need to exclude sv2_ffi to bypass else the 5 new crate limit. After this first publish, this can be removed
- name: Publish
run: cargo release publish -x --exclude mining_proxy_sv2 --exclude pool_sv2 --exclude translator_sv2 --all-features --no-confirm

github_release_translator:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# This defines what environments we will build on
include:
- os: ubuntu-latest
artifact_name: translator_sv2
Expand Down Expand Up @@ -231,8 +196,3 @@ jobs:
asset_name: ${{ matrix.asset_name }}
tag: ${{ env.MINING_PROXY_TAG }}






137 changes: 137 additions & 0 deletions .github/workflows/release-libs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
# This workflow is used to publish SV2 crates to cratesio
# The workflow try to update all the library crates so if a crate is not to updated, the step will fail
# for that each step have continue-on-error set to true.
# Since each step can fail the output ot the action must be manually check to macke sure that all
# the library intended to be published are published.
# Runing cargo release in the various workspace help to prepare the version number and everything.
# ATTENTION
# Is very important to check the output manually cause when too many crates are updated crates.io could fail
# and ask to rerun the action later

name: Release Libs

on:
# Manually run by going to "Actions/Release" in Github and running the workflow
workflow_dispatch:

jobs:
libs_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Login
run: cargo login ${{ secrets.CRATES_IO_DEPLOY_KEY }}
- name: Publish crates common
continue-on-error: true
run: |
cd common
cargo publish
- name: Publish crates buffer_sv2
continue-on-error: true
run: |
cd utils/buffer
cargo publish
- name: Publish crates no_serde_sv2_derive_codec
continue-on-error: true
run: |
cd protocols/v2/binary-sv2/no-serde-sv2/derive_codec
cargo publish
- name: Publish crates no_serde_sv2_codec
continue-on-error: true
run: |
cd protocols/v2/binary-sv2/no-serde-sv2/codec
cargo publish
- name: Publish crates serde_sv2
continue-on-error: true
run: |
cd protocols/v2/binary-sv2/serde-sv2
cargo publish
- name: Publish crates binary_sv2
continue-on-error: true
run: |
cd protocols/v2/binary-sv2/binary-sv2
cargo publish
- name: Publish crates binary_sv2
continue-on-error: true
run: |
cd protocols/v2/binary-sv2/binary-sv2
cargo publish
- name: Publish crates const_sv2
continue-on-error: true
run: |
cd protocols/v2/const-sv2
cargo publish
- name: Publish crates framing_sv2
continue-on-error: true
run: |
cd protocols/v2/framing-sv2
cargo publish
- name: Publish crates noise_sv2
continue-on-error: true
run: |
cd protocols/v2/noise-sv2
cargo publish
- name: Publish crates codec_sv2
continue-on-error: true
run: |
cd protocols/v2/codec-sv2
cargo publish
- name: Publish crates common_messages
continue-on-error: true
run: |
cd protocols/v2/subprotocols/common-messages
cargo publish
- name: Publish crates job_declaration
continue-on-error: true
run: |
cd protocols/v2/subprotocols/job-declaration
cargo publish
- name: Publish crates mining
continue-on-error: true
run: |
cd protocols/v2/subprotocols/mining
cargo publish
- name: Publish crates template_distribution
continue-on-error: true
run: |
cd protocols/v2/subprotocols/template-distribution
cargo publish
- name: Publish crates sv2_ffi
continue-on-error: true
run: |
cd protocols/v2/sv2-ffi
cargo publish
- name: Publish crates roles_logic_sv2
continue-on-error: true
run: |
cd protocols/v2/roles-logic-sv2
cargo publish
- name: Publish crates v1
continue-on-error: true
run: |
cd protocols/v1
cargo publish
- name: Publish crates bip32-key-derivation
continue-on-error: true
run: |
cd utils/bip32-key-derivation
cargo publish
- name: Publish crates error-handling
continue-on-error: true
run: |
cd utils/error-handling
cargo publish
- name: Publish crates key-utils
continue-on-error: true
run: |
cd utils/key-utils
cargo publish
- name: Publish crates network-helpers
continue-on-error: true
run: |
cd utils/network-helpers
cargo publish
67 changes: 67 additions & 0 deletions common/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ license = "MIT OR Apache-2.0"
repository = "https://github.com/stratum-mining/stratum"

[dependencies]
bitcoin = "0.29.1"
bitcoin = {version="0.29.1",optional=true}
1 change: 1 addition & 0 deletions common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
//!
//! `stratum_common` is a utility crate designed to centralize
//! and manage the shared dependencies and utils across stratum crates.
#[cfg(feature = "bitcoin")]
pub use bitcoin;
Loading