-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add handling of dns multiaddrs + bootstrapping + CLI / Conn chan…
…ges (#547) fix: add handling of dns multiaddrs and added kad bootstrapping Closes #545. Closes #492. refactor: transport handling for ws & quic as fallback Includes: - dns fallback to cloudflare - CLI: removal of -w for running workflows; it's now a positional argument (the first one on run) * related to #489 - CLI: `node` command which showcases nodeinfo, e.g. peer_id and listener addrs/connections * related to #489 - CLI: adds static/non-RPC `info` command showcasing version, build-git-sha, and features built with. We can extend this later with more build information. - Closes #297 - Closes #497 --------- Signed-off-by: Zeeshan Lakhani <[email protected]> Co-authored-by: Brian Ginsburg <[email protected]>
- Loading branch information
Showing
26 changed files
with
809 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ jobs: | |
run-checks: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.rust == 'true' || needs.changes.outputs.examples == 'true' }} | ||
if: ${{ needs.changes.outputs.rust == 'true' }} | ||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" | ||
|
@@ -210,7 +210,7 @@ jobs: | |
needs: changes | ||
if: ${{ needs.changes.outputs.rust == 'true' }} | ||
env: | ||
RUSTFLAGS: -Dwarnings -Ctarget-feature=+crt-static | ||
RUSTFLAGS: -Dwarnings -Ctarget-feature=+crt-static | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -262,6 +262,9 @@ jobs: | |
run-cargo-tests: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.rust == 'true' }} | ||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup IPFS | ||
|
@@ -283,11 +286,14 @@ jobs: | |
shared-key: test-all-stable-ubuntu-latest | ||
save-if: ${{ github.event_name == 'push' }} | ||
|
||
- name: Sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Run Tests (all-features) | ||
run: cargo test --workspace --all-features | ||
|
||
run-docs: | ||
needs: changes | ||
needs: [changes] | ||
if: ${{ needs.changes.outputs.rust == 'true' }} | ||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
|
@@ -306,6 +312,7 @@ jobs: | |
- name: Cache Project | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
shared-key: doc | ||
save-if: ${{ github.event_name == 'push' }} | ||
|
||
|
@@ -316,3 +323,42 @@ jobs: | |
env: | ||
RUSTDOCFLAGS: -Dwarnings | ||
run: cargo doc --workspace --document-private-items | ||
|
||
build-and-run-examples: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.examples == 'true' }} | ||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup IPFS | ||
uses: ibnesayeed/setup-ipfs@master | ||
with: | ||
run_daemon: false | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use mold-linker | ||
uses: rui314/setup-mold@v1 | ||
|
||
- name: Install Rust Toolchain | ||
uses: dtolnay/rust-toolchain@nightly | ||
|
||
- name: Cache Project | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
shared-key: cargo-examples | ||
save-if: ${{ github.event_name == 'push' }} | ||
|
||
- name: Sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Build example-websocket-relay | ||
run: cargo build -p websocket-relay | ||
|
||
- name: Run example-websocket-relay | ||
shell: bash | ||
run: timeout 10s cargo run -p websocket-relay || true |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.