Skip to content

⬆️ Bump clap_complete from 4.5.36 to 4.5.37 #4635

⬆️ Bump clap_complete from 4.5.36 to 4.5.37

⬆️ Bump clap_complete from 4.5.36 to 4.5.37 #4635

Workflow file for this run

name: Build Webassembly
on:
workflow_dispatch:
pull_request:
push:
jobs:
test:
name: Test WebAssembly
strategy:
fail-fast: false
matrix:
rust:
- stable
- beta
- nightly
target:
- wasm32-unknown-emscripten
- wasm32-unknown-unknown
- wasm32-wasi
- wasm32-wasip1
include:
- target: wasm32-unknown-emscripten
container: emscripten/emsdk:latest
- target: wasm32-unknown-unknown
container: ghcr.io/portable-network-archive/wasi-sdk-gh-actions:wasi-sdk-24
- target: wasm32-unknown-unknown
- target: wasm32-wasi
container: ghcr.io/portable-network-archive/wasi-sdk-gh-actions:wasi-sdk-24
- target: wasm32-wasi
- target: wasm32-wasip1
container: ghcr.io/portable-network-archive/wasi-sdk-gh-actions:wasi-sdk-24
# - target: wasm32-wasip1
runs-on: ubuntu-latest
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: ${{ matrix.target }}
toolchain: ${{ matrix.rust }}
- if: ${{ startsWith(matrix.target, 'wasm32-wasi') }}
name: Setup wasmtime
uses: bytecodealliance/actions/wasmtime/setup@v1
with:
github_token: ${{ github.token }}
- if: ${{ startsWith(matrix.target, 'wasm32-wasi') }}
name: Run test
run: |
cargo test -p libpna --target ${{ matrix.target }} -- --skip test_readme_deps --skip test_html_root_url
- if: ${{ startsWith(matrix.target, 'wasm32-unknown-emscripten') }}
name: Run test
run: |
cargo test -p libpna --target ${{ matrix.target }} -- --skip test_readme_deps --skip test_html_root_url
env:
RUSTFLAGS: "-C link-arg=-sINITIAL_MEMORY=512MB -C link-arg=-sTOTAL_STACK=16MB"
- if: ${{ !startsWith(matrix.target, 'wasm32-wasi') && !startsWith(matrix.target, 'wasm32-unknown-emscripten') }}
name: Run build
run: |
cargo build -p libpna --target ${{ matrix.target }}
wasi_cli_test:
name: wasi test
strategy:
fail-fast: false
matrix:
include:
- target: wasm32-wasi
container: ghcr.io/portable-network-archive/wasi-sdk-gh-actions:wasi-sdk-24
- target: wasm32-wasi
- target: wasm32-wasip1
container: ghcr.io/portable-network-archive/wasi-sdk-gh-actions:wasi-sdk-24
# - target: wasm32-wasip1
runs-on: ubuntu-latest
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: ${{ matrix.target }}
toolchain: nightly
- uses: bytecodealliance/actions/wasmtime/setup@v1
- name: Run on wasmtime
run: |
cargo run -p portable-network-archive --target ${{ matrix.target }} --release -- --help