forked from tum-ei-eda/utvm_staticrt_codegen
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.22 KB
/
ci.yml
File metadata and controls
47 lines (42 loc) · 1.22 KB
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
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
config:
- {name: "Linux", os: ubuntu-latest, cmake-generator: ""}
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.name }}
steps:
- uses: actions/checkout@v2
- name: Requirements
shell: bash
run: |
sudo apt-get install python3 python3-dev python3-setuptools gcc libtinfo-dev zlib1g-dev build-essential cmake libedit-dev libxml2-dev gcc-arm-none-eabi
sudo pip3 install --upgrade numpy decorator attrs psutil scipy pytest tflite
cd ..
git clone --recursive https://github.com/apache/tvm.git
cd tvm
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git am ../utvm_staticrt_codegen/tvm_patches/*.patch
mkdir build
cp cmake/config.cmake build
cd build
cmake ..
cmake --build .
cd ..
- name: Build
shell: bash
run: |
mkdir build
cd build
cmake ..
cmake --build .
- name: Test
shell: bash
run: |
export PYTHONPATH=$(pwd)/../tvm/python:${PYTHONPATH}
cd examples
./run_flow.sh