Skip to content

docs: update changelog/contributing #256

docs: update changelog/contributing

docs: update changelog/contributing #256

Workflow file for this run

name: Rust CI
on:
push:
branches: ["**"]
pull_request:
branches: ["next", "main"]
jobs:
build-wasm:
name: Build wasm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Rust toolchain & Binaryen
run: rustup update && rustup target add wasm32-unknown-unknown && sudo apt-get install -y binaryen wabt
- name: Build wasm
run: ./examples/rust/build.sh
- name: Save artifacts
uses: actions/upload-artifact@v4
with:
name: wasm
path: examples/rust/out
test-std:
needs: build-wasm
name: Test with default features on stable Rust
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install latest stable Rust toolchain
run: rustup update stable
- name: Load wasm
uses: actions/download-artifact@v4
with:
name: wasm
path: examples/rust/out
- name: Build (stable)
run: cargo +stable build --workspace
- name: Run tests (stable)
run: cargo +stable test --workspace && cargo +stable run --example wasm-rust all
- name: Run MVP testsuite
run: cargo +stable test-wasm-1
- name: Run 2.0 testsuite
run: cargo +stable test-wasm-2
test-no-std:
needs: build-wasm
name: Test without default features on nightly Rust
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install latest nightly Rust toolchain
run: rustup update nightly
- name: Load wasm
uses: actions/download-artifact@v4
with:
name: wasm
path: examples/rust/out
- name: Build (nightly, no default features)
run: cargo +nightly build --workspace --no-default-features
- name: Run tests (nightly, no default features)
run: cargo +nightly test --workspace --no-default-features && cargo +nightly run --example wasm-rust all
- name: Run MVP testsuite
run: cargo +nightly test-wasm-1
- name: Run 2.0 testsuite
run: cargo +nightly test-wasm-2
test-m1:
needs: build-wasm
name: Test on arm64 (Apple M1)
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install stable Rust toolchain
run: rustup update stable
- name: Load wasm
uses: actions/download-artifact@v4
with:
name: wasm
path: examples/rust/out
- name: Build (stable)
run: cargo +stable build
- name: Run tests (stable)
run: cargo +stable test
- name: Run MVP testsuite
run: cargo +stable test-wasm-1
- name: Run 2.0 testsuite
run: cargo +stable test-wasm-2
test-armv7:
needs: build-wasm
name: Test on armv7 (32-Bit Raspberry Pi)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Load wasm
uses: actions/download-artifact@v4
with:
name: wasm
path: examples/rust/out
- name: Run all tests (for the default workspace members)
uses: houseabsolute/[email protected]
with:
command: test
target: armv7-unknown-linux-gnueabihf
toolchain: nightly
- name: Run MVP testsuite
uses: houseabsolute/[email protected]
with:
command: test
args: "-p tinywasm --test test-wasm-1 --release"
target: armv7-unknown-linux-gnueabihf
toolchain: nightly
- name: Run 2.0 testsuite
uses: houseabsolute/[email protected]
with:
command: test
args: "-p tinywasm --test test-wasm-2 --release"
target: armv7-unknown-linux-gnueabihf
toolchain: nightly