-
Notifications
You must be signed in to change notification settings - Fork 3
76 lines (67 loc) · 1.99 KB
/
cicd.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
name: cicd
on:
workflow_dispatch:
push:
paths:
- "icpp_llama2/**"
- "Makefile"
- ".github/trigger.txt"
- ".github/workflows/cicd.yml"
env:
PYTHON_VERSION: 3.11
jobs:
all:
name: all
runs-on: ubuntu-latest
steps:
# https://github.com/marketplace/actions/setup-miniconda
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
# -------------------------------------------------------------------
# Checkout icpp-llm
- name: checkout icpp-llm
uses: actions/checkout@v3
with:
fetch-depth: 0
# -------------------------------------------------------------------
- name: install
shell: bash -l {0} # activates the default conda environment ('test')
run: |
echo "Installing tool chains & dependencies"
pwd
sudo apt-get update
sudo apt-get install build-essential
make summary
make install-dfx
make install-python
make install-clang-ubuntu
make install-jp
- name: versions
shell: bash -l {0}
run: |
echo "icpp --version: $(icpp --version)"
echo "clang++ --version: $(clang++ --version)"
echo "g++ --version: $(g++ --version)"
echo "pip version : $(pip --version)"
echo "python version : $(python --version)"
echo "jp version : $(jp --version)"
echo "dfx version : $(dfx --version)"
echo "Ensure conda works properly"
conda info
which pip
which python
which icpp
- name: install-wasi-sdk
shell: bash -l {0}
run: |
echo "Installing wasi-sdk"
icpp install-wasi-sdk
- name: download models
shell: bash -l {0}
run: |
make icpp_llama2_get_stories15M
- name: all-tests
shell: bash -l {0}
run: |
make all-tests