Skip to content

Commit

Permalink
ci: Use CLI's flag instead of exclude example.
Browse files Browse the repository at this point in the history
  • Loading branch information
langyo committed Dec 6, 2023
1 parent d5cad9a commit 4a91317
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,16 @@ jobs:
path: |
~/.cargo/registry
~/.cargo/git
examples/history-wasi/target
key: cargo-${{ runner.os }}-history-wasi-tests-${{ hashFiles('**/Cargo.toml') }}
target
key: cargo-${{ runner.os }}-node-tests-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
cargo-${{ runner.os }}-history-wasi-tests-
cargo-${{ runner.os }}-node-tests-
cargo-${{ runner.os }}-
- name: Build and run example history-wasi
run: |
cargo build --manifest-path examples/history-wasi/Cargo.toml --target wasm32-wasi
~/wasmtime examples/history-wasi/target/wasm32-wasi/debug/example-history-wasi.wasm
cargo build --package example-history-wasi --target wasm32-wasi
~/wasmtime --trap-unknown-imports target/wasm32-wasi/debug/example-history-wasi.wasm
test-worker:
name: Test gloo-worker
Expand Down
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ members = [
"examples/markdown",
"examples/clock",
"examples/file-hash",
"examples/history-wasi",
"examples/prime",
]
exclude = ["examples/history-wasi"]

# Passing arguments to the docsrs builder in order to properly document cfg's.
# More information: https://docs.rs/about/builds#cross-compiling
Expand Down
2 changes: 0 additions & 2 deletions examples/history-wasi/.gitignore

This file was deleted.

0 comments on commit 4a91317

Please sign in to comment.