-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (52 loc) · 1.69 KB
/
cd.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
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Build and Push
on:
push:
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 extism-py and uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
curl -Ls https://raw.githubusercontent.com/extism/python-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
env:
TENOR_API_KEY: ${{ secrets.TENOR_API_KEY }}
run: |
just build
just test
- name: Publish all the servlets
env:
XTP_TOKEN: ${{ secrets.XTP_TOKEN }}
TENOR_API_KEY: ${{ secrets.TENOR_API_KEY }}
run: just push