-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
70 lines (64 loc) · 2.08 KB
/
.drone.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
kind: pipeline
name: x86_64-pc-linux-musl
platform:
os: linux
arch: amd64
steps:
- name: build agent
image: multiarch/alpine:amd64-v3.9
commands:
- apk add --update gcc g++ musl-dev make file pkgconfig cmake git
- mkdir -p build-x86_64-pc-linux-musl && cd build-x86_64-pc-linux-musl
- export PREFIX=$PWD/prefix
- $DRONE_WORKSPACE/buildprefix.sh
- mkdir -p build-agent && cd build-agent
- cmake
-DCMAKE_INSTALL_PREFIX=$PREFIX
-DCMAKE_BUILD_TYPE=MinSizeRel
-DBUILD_SHARED_LIBS=Off
-DCMAKE_C_FLAGS="$CFLAGS -Wall -Werror -Wno-implicit-fallthrough"
-DCMAKE_CXX_FLAGS="$CXXFLAGS -Wall -Werror -Wno-implicit-fallthrough"
-DNIMRODG_PLATFORM_STRING=x86_64-pc-linux-musl
$DRONE_WORKSPACE
- make -j agent
- strip -s agent/agent
environment:
LIBRESSL_VERSION: 2.9.0
LIBSSH2_VERSION: 1.8.0
CURL_VERSION: 7.64.0
CFLAGS: -static -Os -march=x86-64
CXXFLAGS: -static -Os -march=x86-64
LDFLAGS: -static -flto
---
kind: pipeline
name: i686-pc-linux-musl
platform:
os: linux
arch: amd64
steps:
- name: build agent
image: multiarch/alpine:i386-v3.9
commands:
- apk add --update gcc g++ musl-dev make file pkgconfig cmake git
- mkdir -p build-i686-pc-linux-musl && cd build-i686-pc-linux-musl
- export PREFIX=$PWD/prefix
- $DRONE_WORKSPACE/buildprefix.sh
- mkdir -p build-agent && cd build-agent
- cmake
-DCMAKE_INSTALL_PREFIX=$PREFIX
-DCMAKE_BUILD_TYPE=MinSizeRel
-DBUILD_SHARED_LIBS=Off
-DCMAKE_C_FLAGS="$CFLAGS -Wall -Werror -Wno-implicit-fallthrough"
-DCMAKE_CXX_FLAGS="$CXXFLAGS -Wall -Werror -Wno-implicit-fallthrough"
-DNIMRODG_PLATFORM_STRING=i686-pc-linux-musl
$DRONE_WORKSPACE
- make -j agent
- strip -s agent/agent
environment:
LIBRESSL_VERSION: 2.9.0
LIBSSH2_VERSION: 1.8.0
CURL_VERSION: 7.64.0
CFLAGS: -static -Os -march=i686
CXXFLAGS: -static -Os -march=i686
LDFLAGS: -static -flto