forked from flang-compiler/f18
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.star
51 lines (45 loc) · 1.53 KB
/
.drone.star
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
def clang(arch):
return {
"kind": "pipeline",
"name": "%s clang" % arch,
"concurrency": {"limit": 1},
"steps": [
{
"name": "test",
"image": "ubuntu",
"commands": [
"apt-get update && apt-get install -y clang-8 cmake ninja-build lld-8 llvm-dev libc++-8-dev libc++abi-8-dev",
"mkdir build && cd build",
'env CC=clang-8 CXX=clang++-8 CXXFLAGS="-UNDEBUG -stdlib=libc++" LDFLAGS="-fuse-ld=lld" cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..',
"ninja -j16",
"ctest --output-on-failure -j24",
],
},
],
}
def gcc(arch):
return {
"kind": "pipeline",
"name": "%s gcc" % arch,
"concurrency": {"limit": 1},
"steps": [
{
"name": "test",
"image": "gcc",
"commands": [
"apt-get update && apt-get install -y cmake ninja-build llvm-dev",
"mkdir build && cd build",
'env CC=gcc CXX=g++ CXXFLAGS="-UNDEBUG" LDFLAGS="-fuse-ld=gold" cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..',
"ninja -j16",
"ctest --output-on-failure -j24",
],
},
],
}
def main(ctx):
return [
clang("amd64"),
clang("arm64"),
gcc("amd64"),
gcc("arm64"),
]