[Version] Bump wasmedge-sys
to v0.17.5
(#94)
#10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: binding-rust-static-lib | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
paths-ignore: | |
- "**/*.md" | |
- ".github/workflows/standalone.yml" | |
- ".github/workflows/ci-build.yml" | |
pull_request: | |
paths-ignore: | |
- "**/*.md" | |
- ".github/workflows/standalone.yml" | |
- ".github/workflows/ci-build.yml" | |
jobs: | |
build_ubuntu: | |
name: Ubuntu | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-22.04] | |
rust: [1.73, 1.72, 1.71] | |
container: | |
image: wasmedge/wasmedge:latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies | |
run: | | |
apt update | |
apt install -y software-properties-common libboost-all-dev llvm-15-dev liblld-15-dev ninja-build | |
# - name: Build WasmEdge with Release mode | |
# run: | | |
# cmake -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Release -DWASMEDGE_LINK_LLVM_STATIC=ON -DWASMEDGE_BUILD_SHARED_LIB=OFF -DWASMEDGE_BUILD_STATIC_LIB=ON -DWASMEDGE_BUILD_TOOLS=OFF -DWASMEDGE_BUILD_PLUGINS=OFF . | |
# cmake --build build | |
- name: Install Rust-nightly | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt, clippy | |
- name: Rustfmt | |
working-directory: bindings/rust/ | |
run: cargo +nightly fmt --all -- --check | |
- name: Clippy | |
working-directory: bindings/rust/ | |
run: | | |
export WASMEDGE_DIR="$(pwd)/../../" | |
export WASMEDGE_BUILD_DIR="$(pwd)/../../build" | |
cargo +nightly clippy -V | |
cargo +nightly clippy --lib --examples --features static -- -D warnings | |
- name: Install Rust-stable | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: Test Rust Bindings | |
working-directory: bindings/rust/ | |
run: | | |
export WASMEDGE_DIR="$(pwd)/../../" | |
export WASMEDGE_BUILD_DIR="$(pwd)/../../build" | |
cargo +nightly -Z sparse-registry update | |
cargo test --workspace --features static --locked -- --test-threads=1 | |
cargo test --examples --features static --locked -- --test-threads=1 |