Skip to content

Commit 4a91317

Browse files
committed
ci: Use CLI's flag instead of exclude example.
bytecodealliance/wasmtime#4312
1 parent d5cad9a commit 4a91317

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,16 @@ jobs:
146146
path: |
147147
~/.cargo/registry
148148
~/.cargo/git
149-
examples/history-wasi/target
150-
key: cargo-${{ runner.os }}-history-wasi-tests-${{ hashFiles('**/Cargo.toml') }}
149+
target
150+
key: cargo-${{ runner.os }}-node-tests-${{ hashFiles('**/Cargo.toml') }}
151151
restore-keys: |
152-
cargo-${{ runner.os }}-history-wasi-tests-
152+
cargo-${{ runner.os }}-node-tests-
153+
cargo-${{ runner.os }}-
153154
154155
- name: Build and run example history-wasi
155156
run: |
156-
cargo build --manifest-path examples/history-wasi/Cargo.toml --target wasm32-wasi
157-
~/wasmtime examples/history-wasi/target/wasm32-wasi/debug/example-history-wasi.wasm
157+
cargo build --package example-history-wasi --target wasm32-wasi
158+
~/wasmtime --trap-unknown-imports target/wasm32-wasi/debug/example-history-wasi.wasm
158159
159160
test-worker:
160161
name: Test gloo-worker

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ members = [
7777
"examples/markdown",
7878
"examples/clock",
7979
"examples/file-hash",
80+
"examples/history-wasi",
8081
"examples/prime",
8182
]
82-
exclude = ["examples/history-wasi"]
8383

8484
# Passing arguments to the docsrs builder in order to properly document cfg's.
8585
# More information: https://docs.rs/about/builds#cross-compiling

examples/history-wasi/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)