-
Notifications
You must be signed in to change notification settings - Fork 3
71 lines (63 loc) · 1.88 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
name: cicd
on:
workflow_dispatch:
push:
paths:
- 'llama2_c/**'
- '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@v3
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: all-tests
shell: bash -l {0}
run: |
make all-tests