Skip to content
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
8 changes: 0 additions & 8 deletions .github/workflows/coverage-protocols.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,6 @@ jobs:
flags: parsers_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload roles_logic_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/roles-logic-sv2-coverage
file: ./protocols/target/tarpaulin-reports/roles-logic-sv2-coverage/cobertura.xml
flags: roles_logic_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload v1-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/coverage-utils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ jobs:
flags: utils
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload bip32_derivation-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./utils/target/tarpaulin-reports/bip32-key-derivation-coverage
file: ./utils/target/tarpaulin-reports/bip32-key-derivation-coverage/cobertura.xml
flags: bip32_derivation-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload buffer_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
Expand All @@ -45,19 +37,3 @@ jobs:
flags: buffer_sv2-coverage

token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload error_handling-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./utils/target/tarpaulin-reports/error-handling-coverage
file: ./utils/target/tarpaulin-reports/error-handling-coverage/cobertura.xml
flags: error_handling-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload key-utils-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./utils/target/tarpaulin-reports/key-utils-coverage
file: ./utils/target/tarpaulin-reports/key-utils-coverage/cobertura.xml
flags: key-utils-coverage
token: ${{ secrets.CODECOV_TOKEN }}
6 changes: 0 additions & 6 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,6 @@ jobs:
cd protocols/v2/subprotocols/template-distribution
cargo doc

- name: Rust Docs crate roles_logic_sv2

run: |
cd protocols/v2/roles-logic-sv2
cargo doc

- name: Rust Docs crate sv1_api
run: |
cd protocols/v1
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/fmt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ jobs:
components: rustfmt
- name: Run fmt in different workspaces and crates
run: |
cargo fmt --all --manifest-path=benches/Cargo.toml -- --check
cargo fmt --all --manifest-path=stratum-core/Cargo.toml -- --check
cargo fmt --all --manifest-path=protocols/Cargo.toml -- --check
cargo fmt --all --manifest-path=roles/Cargo.toml -- --check
cargo fmt --all --manifest-path=utils/Cargo.toml -- --check
cargo fmt --all --manifest-path=test/integration-tests/Cargo.toml -- --check
cargo fmt --all --manifest-path=test/integration-tests/Cargo.toml -- --check
23 changes: 2 additions & 21 deletions .github/workflows/release-libs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@ jobs:
run: |
./scripts/release-libs.sh utils/buffer

- name: Publish crate error-handling
run: |
./scripts/release-libs.sh utils/error-handling

- name: Publish crate key-utils
run: |
./scripts/release-libs.sh utils/key-utils

- name: Publish crate noise_sv2
run: |
./scripts/release-libs.sh protocols/v2/noise-sv2
Expand All @@ -64,7 +56,7 @@ jobs:
run: |
./scripts/release-libs.sh protocols/v2/framing-sv2

# codec_sv2 (depends on framing_sv2, noise_sv2, binary_sv2, buffer_sv2, key-utils)
# codec_sv2 (depends on framing_sv2, noise_sv2, binary_sv2, buffer_sv2)
- name: Publish crate codec_sv2
run: |
./scripts/release-libs.sh protocols/v2/codec-sv2
Expand Down Expand Up @@ -105,12 +97,6 @@ jobs:
- name: Publish crate stratum_translation
run: |
./scripts/release-libs.sh protocols/stratum-translation

# Roles logic (depends on codec_sv2 and subprotocols)
- name: Publish crate roles_logic_sv2
run: |
./scripts/release-libs.sh protocols/v2/roles-logic-sv2

# handlers_sv2 (depends on parsers_sv2, binary_sv2, common_messages_sv2, mining_sv2, template_distribution_sv2, job_declaration_sv2)
- name: Publish crate handlers_sv2
run: |
Expand All @@ -121,12 +107,7 @@ jobs:
run: |
./scripts/release-libs.sh stratum-core/stratum-core

# Utilities that depend on stratum-core
- name: Publish crate bip32-key-derivation
run: |
./scripts/release-libs.sh utils/bip32-key-derivation

# stratum-apps (depends on stratum-core and external crates)
- name: Publish crate stratum-apps
run: |
./scripts/release-libs.sh roles/stratum-apps
./scripts/release-libs.sh roles/stratum-apps
Comment thread
lucasbalieiro marked this conversation as resolved.
6 changes: 2 additions & 4 deletions .github/workflows/rust-msrv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
with:
toolchain: ${{ matrix.rust }}
override: true
Comment thread
lucasbalieiro marked this conversation as resolved.
- name: Build Benches
run: cargo build --manifest-path=benches/Cargo.toml
- name: Build stratum-core
run: cargo build --manifest-path=stratum-core/Cargo.toml
- name: Build Protocols
run: cargo build --manifest-path=protocols/Cargo.toml
- name: Build Roles
Expand All @@ -34,8 +34,6 @@ jobs:
run: cargo build --locked --manifest-path=test/integration-tests/Cargo.toml

# also check test compilation without running tests
- name: Check Test Compilation for Benches
run: cargo test --manifest-path=benches/Cargo.toml --no-run
- name: Check Test Compilation for Protocols
run: cargo test --manifest-path=protocols/Cargo.toml --no-run
- name: Check Test Compilation for Stratum Core
Expand Down
20 changes: 2 additions & 18 deletions .github/workflows/semver-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,14 @@ jobs:
working-directory: protocols/v2/subprotocols/template-distribution
run: cargo semver-checks

- name: Run semver checks for protocols/v2/roles-logic-sv2
working-directory: protocols/v2/roles-logic-sv2
run: cargo semver-checks --default-features

- name: Run semver checks for protocols/v2/channels-sv2
working-directory: protocols/v2/channels-sv2
run: cargo semver-checks

- name: Run semver checks for protocols/v2/parsers-sv2
working-directory: protocols/v2/parsers-sv2
run: cargo semver-checks

- name: Run semver checks for protocols/v2/handlers-sv2
working-directory: protocols/v2/handlers-sv2
run: cargo semver-checks
Expand All @@ -101,18 +97,6 @@ jobs:
working-directory: protocols/v1
run: cargo semver-checks

- name: Run semver checks for utils/bip32-key-derivation
working-directory: utils/bip32-key-derivation
run: cargo semver-checks

- name: Run semver checks for utils/error-handling
working-directory: utils/error-handling
run: cargo semver-checks

- name: Run semver checks for utils/key-utils
working-directory: utils/key-utils
run: cargo semver-checks

- name: Run semver checks for protocols/stratum-translation
working-directory: protocols/stratum-translation
run: cargo semver-checks
Expand All @@ -125,4 +109,4 @@ jobs:
# TODO: Uncomment this when the stratum-apps crate is published to crates.io
# - name: Run semver checks for roles/stratum-apps
# working-directory: roles/stratum-apps
# run: cargo semver-checks
# run: cargo semver-checks
2 changes: 0 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:

- name: Build
run: |
cargo build --manifest-path=benches/Cargo.toml
cargo build --manifest-path=stratum-core/Cargo.toml
cargo build --manifest-path=protocols/Cargo.toml
cargo build --manifest-path=roles/Cargo.toml
Expand Down Expand Up @@ -68,7 +67,6 @@ jobs:

- name: Test
run: |
cargo test --manifest-path=benches/Cargo.toml
cargo test --manifest-path=stratum-core/Cargo.toml
cargo test --manifest-path=protocols/Cargo.toml
cargo test --manifest-path=roles/Cargo.toml
Expand Down
45 changes: 0 additions & 45 deletions benches/Cargo.toml

This file was deleted.

Loading
Loading