Skip to content

Commit fa8d397

Browse files
committed
centralize lists
1 parent ceedde0 commit fa8d397

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ env:
1313
RUSTFLAGS: -Dwarnings
1414
RUSTDOCFLAGS: -Dwarnings
1515
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"
1618
IROH_FORCE_STAGING_RELAYS: "1"
1719

1820
jobs:
@@ -43,9 +45,7 @@ jobs:
4345

4446
- name: Fetch dependencies
4547
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
4949
if [ -f "$example/Cargo.toml" ]; then
5050
echo "Fetching dependencies for $example"
5151
cargo fetch --manifest-path "$example/Cargo.toml" --locked 2>/dev/null || cargo fetch --manifest-path "$example/Cargo.toml"
@@ -70,9 +70,7 @@ jobs:
7070

7171
- name: Check formatting
7272
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
7674
if [ -f "$example/Cargo.toml" ]; then
7775
echo "Checking format: $example"
7876
cargo fmt --manifest-path "$example/Cargo.toml" --all -- --check
@@ -104,7 +102,7 @@ jobs:
104102

105103
- name: Build WASM examples
106104
run: |
107-
for example in browser-echo; do
105+
for example in $WASM_EXAMPLES_LIST; do
108106
echo "Building WASM: $example"
109107
cd "$example"
110108
RUSTFLAGS='--cfg getrandom_backend="wasm_js"' cargo build --target wasm32-unknown-unknown

0 commit comments

Comments
 (0)