Test standalone mode #14
Workflow file for this run
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: rust-standalone-test | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
on: workflow_dispatch | |
jobs: | |
build_ubuntu_2204: | |
name: Ubuntu | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
rust: [1.70.0, 1.69, 1.68] | |
steps: | |
- name: Checkout WasmEdge Rust SDK | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up build environment | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y software-properties-common libboost-all-dev ninja-build | |
sudo apt-get install -y llvm-14-dev liblld-14-dev clang-14 | |
sudo apt-get install -y gcc g++ | |
sudo apt-get install -y libssl-dev pkg-config gh | |
- name: Install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: Run in the standalone mode | |
run: | | |
export LLVM_DIR="/usr/local/opt/llvm/lib/cmake" | |
export CC=clang | |
export CXX=clang++ | |
export LD_LIBRARY_PATH=$HOME/.wasmedge/lib | |
cargo test -p wasmedge-sdk --all --examples --features standalone | |
wasmedge --version | |
build_ubuntu_2004: | |
name: Ubuntu | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
rust: [1.70.0, 1.69, 1.68] | |
steps: | |
- name: Checkout WasmEdge Rust SDK | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up build environment | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y software-properties-common libboost-all-dev ninja-build | |
sudo apt-get install -y llvm-12-dev liblld-12-dev clang-12 | |
sudo apt-get install -y gcc g++ | |
sudo apt-get install -y libssl-dev pkg-config gh | |
- name: Install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: Run in the standalone mode | |
run: | | |
export LLVM_DIR="/usr/local/opt/llvm/lib/cmake" | |
export CC=clang | |
export CXX=clang++ | |
export LD_LIBRARY_PATH=$HOME/.wasmedge/lib | |
cargo test -p wasmedge-sdk --all --examples --features standalone | |
wasmedge --version | |
build_fedora: | |
name: Fedora | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: [1.70.0, 1.69, 1.68] | |
container: | |
image: fedora:latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up build environment | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y software-properties-common libboost-all-dev ninja-build | |
sudo apt-get install -y llvm-12-dev liblld-12-dev clang-12 | |
sudo apt-get install -y gcc g++ | |
sudo apt-get install -y libssl-dev pkg-config gh | |
- name: Install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: Run in the standalone mode | |
run: | | |
export LLVM_DIR="/usr/local/opt/llvm/lib/cmake" | |
export CC=clang | |
export CXX=clang++ | |
export LD_LIBRARY_PATH=$HOME/.wasmedge/lib | |
cargo test -p wasmedge-sdk --all --examples --features standalone | |
wasmedge --version | |
build_macos: | |
name: MacOS | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-11, macos-12] | |
rust: [1.70.0, 1.69, 1.68] | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: Install build tools | |
run: brew install llvm ninja boost cmake | |
- name: Install libwasmedge | |
run: | | |
export LLVM_DIR="/usr/local/opt/llvm/lib/cmake" | |
export CC=clang | |
export CXX=clang++ | |
export DYLD_LIBRARY_PATH=$HOME/.wasmedge/lib | |
cargo test -p wasmedge-sdk --all --examples --features standalone | |
wasmedge --version |