-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathbenchmark.yaml
68 lines (60 loc) · 1.54 KB
/
benchmark.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
package:
name: benchmark
version: 1.8.3
epoch: 0
description: "microbenchmark support library"
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- cmake
- doxygen
- gtest-dev
- samurai
pipeline:
- uses: fetch
with:
expected-sha256: 6bc180a57d23d4d9515519f92b0c83d61b05b5bab188961f36ac7b06b0d9e9ce
uri: https://github.com/google/benchmark/archive/v${{package.version}}.tar.gz
- runs: |
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build \
-G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DBENCHMARK_ENABLE_ASSEMBLY_TESTS=OFF \
-DBENCHMARK_ENABLE_DOXYGEN=ON \
-DBENCHMARK_ENABLE_LTO=ON \
-DBENCHMARK_ENABLE_WERROR=OFF \
-DBENCHMARK_USE_BUNDLED_GTEST=OFF \
$CMAKE_CROSSOPTS
cmake --build build
- runs: |
DESTDIR="${{targets.destdir}}" cmake --install build
- uses: strip
subpackages:
- name: benchmark-dev
pipeline:
- uses: split/dev
dependencies:
runtime:
- benchmark
description: benchmark dev
- name: "benchmark-doc"
description: "benchmark documentation"
pipeline:
- uses: split/manpages
update:
enabled: true
github:
identifier: google/benchmark
strip-prefix: v
use-tag: true