-
Notifications
You must be signed in to change notification settings - Fork 19
79 lines (66 loc) · 1.81 KB
/
kubernetes-containerd-wasi-nn.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: k8s containerd WASI-NN test
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'info'
push:
branches: [ main ]
paths-ignore:
- '**/README.md'
pull_request:
branches: [ main ]
paths-ignore:
- '**/README.md'
schedule:
- cron: "0 0 */1 * *"
jobs:
run:
runs-on: ubuntu-20.04
name: Run WASI-NN plugin example
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install apt-get packages
run: |
sudo ACCEPT_EULA=Y apt-get update
sudo ACCEPT_EULA=Y apt-get upgrade
sudo ACCEPT_EULA=Y apt-get install git wget
- name: Install containerd, WasmEdge, and crun
run: |
bash k8s_containerd_wasi_nn/install_containerd.sh
- name: Installing and starting k8s
run: |
bash k8s_containerd_wasi_nn/install_k8s.sh > k8s.log 2>&1
- name: Sleep for 1200s
run: sleep 1200s
shell: bash
- name: Dump the log of k8s setup
run: |
cat k8s.log
- name: Run WasmEdge in k8s
continue-on-error: true
run: |
bash k8s_containerd_wasi_nn/wasi_nn_application.sh > dump.log 2>&1
- name: Display crun and wasmedge version
run: |
crun --version
wasmedge --version
- name: Dump the log of execution
run: |
cat dump.log
- name: Check the result
run: |
if grep -q "Aix" dump.log
then
echo -e "Execution Success!"
else
echo -e "Execution Fail! Please check the above log for details"
exit 1
fi