forked from WasmEdge/wasmedge-rust-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.35 KB
/
rust-static-lib.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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:ubuntu-build-clang
steps:
- name: Checkout WasmEdge Rust SDK
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: Install Rust-stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
- name: Test Rust SDK
run: |
cargo test -p wasmedge-sdk --all --examples --features static -- --nocapture --test-threads=1
- name: Test Rust SDK with async feature
run: |
cargo test -p wasmedge-sdk --all --examples --features static -- --nocapture --test-threads=1