Skip to content

Conversation

@Arqu
Copy link
Collaborator

@Arqu Arqu commented Oct 22, 2025

No description provided.

@Arqu Arqu requested a review from dignifiedquire October 22, 2025 20:31
@Arqu Arqu added this to iroh Oct 22, 2025
@Arqu Arqu self-assigned this Oct 22, 2025
@github-project-automation github-project-automation bot moved this to 🏗 In progress in iroh Oct 22, 2025
@Arqu Arqu moved this from 🏗 In progress to 👀 In review in iroh Oct 22, 2025

- name: Check formatting
run: |
for example in browser-chat browser-echo custom-router dumbpipe-web \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to keep a single list of rust examples (and one of wasm examples) in a variable at the top? With now three lists (here, above on fetch deps, below on test) it is quite error-prone to keep those in sync and up-to-date when adding new examples.


- name: Build WASM examples
run: |
for example in browser-echo; do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

misses browser-chat?

@github-actions
Copy link

github-actions bot commented Oct 23, 2025

Deployment for this PR has been generated and is available at: https://n0-computer.github.io/iroh-examples/pr/141

Last updated: 2025-10-23T09:38:55Z

@Arqu Arqu requested a review from Frando October 23, 2025 06:54
tracing-subscriber = "0.3.19"
data-encoding = "2.9"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead can we easily make the cli not build for wasm? It's a separate crate from the shared lib and not intended to build on wasm

@Arqu Arqu requested a review from Frando October 23, 2025 07:44

- name: Build WASM examples
run: |
# browser-echo is a single package
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use the WASM_EXAMPLES_LIST from above here instead of manually invoking the build for each wasm crate?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

browser-chat is a special case but I've amended it now

env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
example:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to hold this up, but if you happen to have an idea how to easily again use the RS_EXAMPLES_LIST from above instead of the manual list here, we'd be down to a single place where examples are listed. However if this is not straightforward, let's leave it.

Maybe we can add a note to the readme or to a CONTRIBUTING.md with instructions where you have to add the paths to new examples when contributing an example?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sadly we cannot create a matrix dynamically so we have to maintain both or I have to do a much more complex setup which Im still not sure works.

@Arqu Arqu merged commit da4f759 into main Oct 23, 2025
17 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in iroh Oct 23, 2025
@Arqu Arqu deleted the arqu/parallel_ci branch October 23, 2025 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants