-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathaws-crt-cpp.yaml
87 lines (80 loc) · 2.16 KB
/
aws-crt-cpp.yaml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
package:
name: aws-crt-cpp
version: 0.26.3
epoch: 0
description: "C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++"
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- aws-c-auth-dev
- aws-c-cal-dev
- aws-c-common-dev
- aws-c-compression-dev
- aws-c-event-stream-dev
- aws-c-http-dev
- aws-c-io-dev
- aws-c-mqtt-dev
- aws-c-s3-dev
- aws-c-sdkutils-dev
- aws-checksums-dev
- build-base
- busybox
- ca-certificates-bundle
- cmake
- s2n-tls-dev
- samurai
pipeline:
- uses: git-checkout
with:
repository: https://github.com/awslabs/aws-crt-cpp
tag: v${{package.version}}
expected-commit: 98d68a1be424732ec1128ef2aadbf552ed653ed0
- runs: |
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
CFLAGS="$CFLAGS -flto=auto" \
CXXFLAGS="$CXXFLAGS -flto=auto" \
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None \
-DBUILD_DEPS=OFF \
-DBUILD_TESTING="OFF" \
$CMAKE_CROSSOPTS
cmake --build build
- runs: |
DESTDIR="${{targets.destdir}}" cmake --install build
- uses: strip
subpackages:
- name: aws-crt-cpp-dev
description: aws-crt-cpp dev
pipeline:
- uses: split/dev
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/lib
mv "${{targets.destdir}}"/usr/lib/aws-crt-cpp "${{targets.subpkgdir}}"/usr/lib/
dependencies:
runtime:
- aws-crt-cpp
- aws-c-auth-dev
- aws-c-cal-dev
- aws-c-common-dev
- aws-c-compression-dev
- aws-c-event-stream-dev
- aws-c-http-dev
- aws-c-io-dev
- aws-c-mqtt-dev
- aws-c-s3-dev
- aws-c-sdkutils-dev
- aws-checksums-dev
- s2n-tls-dev
update:
enabled: true
github:
identifier: awslabs/aws-crt-cpp
strip-prefix: v
use-tag: true