-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
52 lines (49 loc) · 1.7 KB
/
.gitlab-ci.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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
build:
stage: build
script:
# fetch stuff
- apt-get update -qq && apt-get install -y -qq doxygen graphviz libboost-all-dev meson unzip
# download the latest release of TensorFlow
- curl -s -L $(curl -s -L https://api.github.com/repos/tensorflow/tensorflow/releases/latest | python -c "import sys, json; print(json.load(sys.stdin)['tarball_url'])") | tar -z -x && mv tensorflow* tensorflow
# build tensorflow-lite
- cd tensorflow && tensorflow/contrib/lite/tools/make/download_dependencies.sh && cd ..
- cd tensorflow && make -s -j $(nproc) -f tensorflow/contrib/lite/tools/make/Makefile SHELL=bash && cd ..
# install tensorflow-lite
- mkdir -p /usr/local/include
- mkdir -p /usr/local/lib
- cp -R tensorflow/tensorflow /usr/local/include
- cp -R tensorflow/tensorflow/contrib/lite/tools/make/downloads/flatbuffers/include/* /usr/local/include/
- cp $(find tensorflow/tensorflow/contrib/lite/tools/make/gen -name "libtensorflow-lite.a") /usr/local/lib
# build libaction
- meson build --buildtype release --werror --warnlevel 3
- ninja -C build
- doxygen
- mv html docs
artifacts:
paths:
- build
- docs
pages:
stage: deploy
script:
- cp -R docs public
artifacts:
paths:
- public
only:
- tags
release:
stage: deploy
script:
- rm include/meson.build
artifacts:
name: "libaction-$CI_COMMIT_REF_NAME"
paths:
- docs
- include