diff options
-rw-r--r-- | .drone.yml | 77 | ||||
-rw-r--r-- | README.md | 2 |
2 files changed, 79 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..cdc619b --- /dev/null +++ b/.drone.yml | |||
@@ -0,0 +1,77 @@ | |||
1 | kind: pipeline | ||
2 | type: exec | ||
3 | name: arm64 | ||
4 | |||
5 | platform: | ||
6 | os: linux | ||
7 | arch: arm64 | ||
8 | |||
9 | clone: | ||
10 | disable: false | ||
11 | |||
12 | trigger: | ||
13 | branch: | ||
14 | - master | ||
15 | event: | ||
16 | - push | ||
17 | - pull_request | ||
18 | |||
19 | steps: | ||
20 | - name: build | ||
21 | commands: | ||
22 | - git clone --recurse-submodules -j8 -b master git://github.com/YoeDistro/yoe-distro.git yoe | ||
23 | - cd yoe | ||
24 | - git checkout master | ||
25 | - git pull | ||
26 | - git submodule update --recursive --init | ||
27 | - rm -rf sources/meta-clang | ||
28 | - ln -sf `pwd`/../ sources/meta-clang | ||
29 | - export DOCKER_REPO=none | ||
30 | - export LANG=en_US.UTF-8 | ||
31 | - export SSTATE_CACHE_DIR=/scratch/sstate-cache | ||
32 | - echo "Started build# $DRONE_BUILD_NUMBER" | ||
33 | - echo "sstate cache dir = $SSTATE_CACHE_DIR" | ||
34 | - echo "building $DRONE_GIT_HTTP_URL, branch $DRONE_SOURCE_BRANCH" | ||
35 | - echo export DOCKER_REPO=none > local.sh | ||
36 | - echo export LANG=en_US.UTF-8 >> local.sh | ||
37 | - echo export SSTATE_CACHE_DIR=/scratch/sstate-cache >> local.sh | ||
38 | - cp conf/local.conf.sample conf/local.conf | ||
39 | - echo SSTATE_DIR = \"$SSTATE_CACHE_DIR\" >> conf/local.conf | ||
40 | - echo TMPDIR = \"/scratch/tmp-clang-$DRONE_BUILD_NUMBER\" >> conf/local.conf | ||
41 | - echo IMAGE_CLASSES += \"testimage testsdk\" >> conf/local.conf | ||
42 | - echo INHERIT += \"report-error rm_work\" >> conf/local.conf | ||
43 | - echo TOOLCHAIN = \"clang\" >> conf/local.conf | ||
44 | - echo IMAGE_INSTALL_append = \" clang \" >> conf/local.conf | ||
45 | #- echo TESTIMAGE_AUTO_qemuall = \"1\" >> conf/local.conf | ||
46 | - /bin/bash -c ". ./qemux86-64-envsetup.sh && bitbake yoe-simple-image -cpopulate_sdk" | ||
47 | - /bin/bash -c ". ./qemux86-64-envsetup.sh && ./sources/openembedded-core/scripts/sstate-cache-management.sh -d -y" | ||
48 | --- | ||
49 | kind: pipeline | ||
50 | type: exec | ||
51 | name: cleanup | ||
52 | |||
53 | platform: | ||
54 | os: linux | ||
55 | arch: arm64 | ||
56 | |||
57 | clone: | ||
58 | disable: true | ||
59 | |||
60 | trigger: | ||
61 | branch: | ||
62 | - master | ||
63 | event: | ||
64 | - push | ||
65 | - pull_request | ||
66 | status: | ||
67 | - success | ||
68 | - failure | ||
69 | |||
70 | steps: | ||
71 | - name: clean | ||
72 | commands: | ||
73 | - echo "Deleting tmpdir for build# $DRONE_BUILD_NUMBER" | ||
74 | - rm -rf /scratch/tmp-clang-$DRONE_BUILD_NUMBER | ||
75 | |||
76 | depends_on: | ||
77 | - arm64 | ||
@@ -1,3 +1,5 @@ | |||
1 | [![Build Status](https://drone.yoedistro.org/api/badges/kraj/meta-clang/status.svg)](https://drone.yoedistro.org/kraj/meta-clang) | ||
2 | |||
1 | # meta-clang (a C language family frontend and LLVM compiler backend) | 3 | # meta-clang (a C language family frontend and LLVM compiler backend) |
2 | 4 | ||
3 | This layer provides [clang/llvm](http://clang.llvm.org/) as alternative to your system | 5 | This layer provides [clang/llvm](http://clang.llvm.org/) as alternative to your system |