Skip to content

Update WIT examples in README to use semicolons #942

Update WIT examples in README to use semicolons

Update WIT examples in README to use semicolons #942

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
core:
name: test_core
# We test on `macos-latest` to accurately reflect
# the core Wasm binary that we attach to the releases,
# which is built on the latest macOS too.
# This is also helpful for testing fuel
# consumption in tests.
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/ci-shared-setup
with:
os: macos
- name: Install cargo-wasi
run: cargo install cargo-wasi
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: Compile core
run: cargo build -p javy-core --release --target=wasm32-wasi
- name: Test
run: cargo hack wasi test --workspace --exclude=javy-cli --each-feature -- --nocapture
- name: Lint
run: cargo clippy --workspace --exclude=javy-cli --target=wasm32-wasi --all-targets -- -D warnings
- name: Upload core binary to artifacts
uses: actions/upload-artifact@v3
with:
name: engine
path: target/wasm32-wasi/release/javy_core.wasm
- name: Upload quickjs_provider to artifacts
uses: actions/upload-artifact@v3
with:
name: provider
path: target/wasm32-wasi/release/javy_quickjs_provider.wasm
cli:
name: test_cli
runs-on: ubuntu-latest
needs: core
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/ci-shared-setup
with:
os: linux
- uses: actions/download-artifact@v3
with:
name: engine
path: target/wasm32-wasi/release/
- uses: actions/download-artifact@v3
with:
name: provider
path: target/wasm32-wasi/release/
- name: Test CLI
run: CARGO_PROFILE_RELEASE_LTO=off cargo test --package=javy-cli --release -- --nocapture
- name: Check benchmarks
run: CARGO_PROFILE_RELEASE_LTO=off cargo check --package=javy-cli --release --benches
- name: Lint
run: |
cargo fmt -- --check
CARGO_PROFILE_RELEASE_LTO=off cargo clippy --package=javy-cli --release --all-targets -- -D warnings