-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 891 Bytes
/
ci.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
name: CI
on: [pull_request, workflow_dispatch]
jobs:
test-example:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
rust:
- stable
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Install wasm32 target
run: rustup target add wasm32-unknown-unknown
- name: Install XTP CLI
run: curl https://static.dylibso.com/cli/install.sh | sudo sh
- name: Check XTP CLI Version
run: xtp -v
- name: Build
run: cargo build --release --examples
- name: Test example
run: |
# this is configured in `xtp.toml`
xtp plugin test https://raw.githubusercontent.com/extism/extism/main/wasm/code.wasm