-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
38 lines (35 loc) · 1.35 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
image: ubuntu:16.04
before_script:
- rm /etc/apt/sources.list
- echo deb http://isrc.iscas.ac.cn/mirror/ubuntu/ xenial main restricted universe multiverse > /etc/apt/sources.list
- echo deb http://isrc.iscas.ac.cn/mirror/ubuntu/ xenial-updates main restricted universe multiverse >> /etc/apt/sources.list
- echo deb http://isrc.iscas.ac.cn/mirror/ubuntu/ xenial-security main restricted universe multiverse >> /etc/apt/sources.list
- apt-get update -y
- apt-get install make cmake wget unzip -y
test:
stage: test
tags:
- xenial
script:
- mkdir build
- cd build
- wget http://192.168.8.12/dl/tools/toolchain_RVTensor/kendryte-freertos-sdk.zip
- wget http://192.168.8.12/dl/tools/toolchain_RVTensor/kendryte-toolchain.zip
- unzip kendryte-freertos-sdk.zip
- unzip kendryte-toolchain.zip
- cd ..
##### BUILD KENDRYTE
- if [ -d "build-kendryte-freertos" ];then
- rm -fr build-kendryte-freertos
- fi
- toolchain_dir="$PWD/build/opt/kendryte-toolchain"
- sdk_dir="$PWD/build/kendryte-freertos-sdk"
- mkdir -p build-kendryte-freertos
- pushd build-kendryte-freertos
- cmake -DCMAKE_TOOLCHAIN_FILE=../environments/kendryte.toolchain.cmake -DTOOLCHAIN_DIR=$toolchain_dir -DSDK_DIR=$sdk_dir ..
- make VERBOSE=1
- popd
artifacts:
paths:
- build-kendryte-freertos
expire_in: 1 week