|
13 | 13 | RUSTFLAGS: -Dwarnings |
14 | 14 | RUSTDOCFLAGS: -Dwarnings |
15 | 15 | MSRV: "1.85" |
| 16 | + RS_EXAMPLES_LIST: "browser-chat browser-echo custom-router dumbpipe-web framed-messages frosty iroh-automerge iroh-automerge-repo iroh-gateway extism/host extism/plugin extism/iroh-extism-host-functions" |
| 17 | + WASM_EXAMPLES_LIST: "browser-chat browser-echo" |
16 | 18 | IROH_FORCE_STAGING_RELAYS: "1" |
17 | 19 |
|
18 | 20 | jobs: |
|
43 | 45 |
|
44 | 46 | - name: Fetch dependencies |
45 | 47 | run: | |
46 | | - for example in browser-chat browser-echo custom-router dumbpipe-web \ |
47 | | - framed-messages frosty iroh-automerge iroh-automerge-repo iroh-gateway \ |
48 | | - extism/host extism/plugin extism/iroh-extism-host-functions; do |
| 48 | + for example in $RS_EXAMPLES_LIST; do |
49 | 49 | if [ -f "$example/Cargo.toml" ]; then |
50 | 50 | echo "Fetching dependencies for $example" |
51 | 51 | cargo fetch --manifest-path "$example/Cargo.toml" --locked 2>/dev/null || cargo fetch --manifest-path "$example/Cargo.toml" |
|
70 | 70 |
|
71 | 71 | - name: Check formatting |
72 | 72 | run: | |
73 | | - for example in browser-chat browser-echo custom-router dumbpipe-web \ |
74 | | - framed-messages frosty iroh-automerge iroh-automerge-repo iroh-gateway \ |
75 | | - extism/host extism/plugin extism/iroh-extism-host-functions; do |
| 73 | + for example in $RS_EXAMPLES_LIST; do |
76 | 74 | if [ -f "$example/Cargo.toml" ]; then |
77 | 75 | echo "Checking format: $example" |
78 | 76 | cargo fmt --manifest-path "$example/Cargo.toml" --all -- --check |
@@ -104,7 +102,7 @@ jobs: |
104 | 102 |
|
105 | 103 | - name: Build WASM examples |
106 | 104 | run: | |
107 | | - for example in browser-echo; do |
| 105 | + for example in $WASM_EXAMPLES_LIST; do |
108 | 106 | echo "Building WASM: $example" |
109 | 107 | cd "$example" |
110 | 108 | RUSTFLAGS='--cfg getrandom_backend="wasm_js"' cargo build --target wasm32-unknown-unknown |
|
0 commit comments