-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (41 loc) · 1.26 KB
/
ci.yaml
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
53
name: CI
on:
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
targets: wasm32-unknown-unknown, wasm32-wasi
- name: Add wasm32-wasip1 target (can be moved to list above when the target is added to toolchain action above)
run: rustup target add wasm32-wasip1
- name: Install just
uses: extractions/setup-just@v1
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'
- name: Install TinyGo
run: |
wget https://github.com/tinygo-org/tinygo/releases/download/v0.34.0/tinygo_0.34.0_amd64.deb
sudo dpkg -i tinygo_0.34.0_amd64.deb
- name: Install extism-js
run: |
curl -L https://raw.githubusercontent.com/extism/js-pdk/main/install.sh | bash
- name: Install xtp CLI
run: |
curl -L https://static.dylibso.com/cli/install.sh -s | bash
- name: Build and test all the servlets
run: |
just build
just test