-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into batch-blob-api-3
# Conflicts: # iroh/src/client.rs # iroh/src/client/blobs.rs # iroh/src/lib.rs # iroh/src/node.rs
- Loading branch information
Showing
128 changed files
with
7,657 additions
and
6,349 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[test-groups] | ||
run-in-isolation = { max-threads = 16 } | ||
# these are tests that must not run with other tests concurrently. All tests in | ||
# this group can take up at most 16 threads among them, but each one requiring | ||
# 16 threads also. The effect should be that tests run isolated. | ||
|
||
[[profile.ci.overrides]] | ||
filter = 'test(::run_in_isolation::)' | ||
test-group = 'run-in-isolation' | ||
threads-required = 16 |
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
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 |
---|---|---|
|
@@ -18,6 +18,7 @@ env: | |
RUSTDOCFLAGS: -Dwarnings | ||
MSRV: "1.76" | ||
SCCACHE_CACHE_SIZE: "50G" | ||
IROH_FORCE_STAGING_RELAYS: "1" | ||
|
||
jobs: | ||
tests: | ||
|
@@ -298,7 +299,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: EmbarkStudios/cargo-deny-action@v1 | ||
- uses: EmbarkStudios/cargo-deny-action@v2 | ||
with: | ||
arguments: --workspace --all-features | ||
command: check | ||
|
@@ -323,7 +324,7 @@ jobs: | |
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Install sccache | ||
uses: mozilla-actions/[email protected].4 | ||
uses: mozilla-actions/[email protected].5 | ||
|
||
- name: Build iroh | ||
run: | | ||
|
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
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
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Docs Preview | ||
|
||
on: | ||
pull_request: | ||
|
||
env: | ||
IROH_FORCE_STAGING_RELAYS: "1" | ||
|
||
jobs: | ||
preview_docs: | ||
timeout-minutes: 30 | ||
name: Docs preview | ||
if: "github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork" | ||
runs-on: ubuntu-latest | ||
env: | ||
RUSTC_WRAPPER: "sccache" | ||
SCCACHE_GHA_ENABLED: "on" | ||
SCCACHE_CACHE_SIZE: "50G" | ||
PREVIEW_PATH: pr/${{ github.event.pull_request.number }}/docs | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: nightly-2024-05-02 | ||
- name: Install sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Generate Docs | ||
run: cargo doc --workspace --all-features --no-deps | ||
env: | ||
RUSTDOCFLAGS: --cfg docsrs | ||
|
||
- name: Deploy Docs to Preview Branch | ||
uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./target/doc/ | ||
destination_dir: ${{ env.PREVIEW_PATH }} | ||
publish_branch: generated-docs-preview | ||
|
||
- name: Find Docs Comment | ||
uses: peter-evans/find-comment@v3 | ||
id: fc | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
comment-author: 'github-actions[bot]' | ||
body-includes: Documentation for this PR has been generated | ||
|
||
- name: Create or Update Docs Comment | ||
uses: peter-evans/create-or-update-comment@v4 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
comment-id: ${{ steps.fc.outputs.comment-id }} | ||
body: | | ||
Documentation for this PR has been generated and is available at: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ env.PREVIEW_PATH }}/iroh/ | ||
Last updated: ${{ github.event.pull_request.updated_at }} | ||
edit-mode: replace |
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
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
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
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
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
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.