forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmake.yaml
93 lines (85 loc) · 2.03 KB
/
cmake.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
88
89
90
91
92
93
package:
name: cmake
version: 3.29.0
epoch: 3
description: "CMake is an open-source, cross-platform family of tools designed to build, test and package software"
dependencies:
provider-priority: 10
copyright:
- license: BSD-3-Clause
environment:
contents:
packages:
- build-base
- busybox
- bzip2-dev
- ca-certificates-bundle
- curl-dev
- expat-dev
- jsoncpp-dev
- libarchive-dev
- libuv-dev
- ncurses-dev
- nghttp2-dev
- openssf-compiler-options
- openssl-dev
- rhash-dev
- samurai
- wolfi-base
- xz-dev
- zlib-dev
pipeline:
- uses: fetch
with:
uri: https://www.cmake.org/files/v3.29/cmake-${{package.version}}.tar.gz
expected-sha256: a0669630aae7baa4a8228048bf30b622f9e9fd8ee8cedb941754e9e38686c778
# Depending on system libraries for everything we have, as if any of
# them use cmake they are built with cmake-bootstrap instead. Apart
# from cppdap, as we don't package it standalone.
- runs: |
./bootstrap \
--prefix=/usr \
--mandir=/share/man \
--datadir=/share/cmake \
--docdir=/share/doc/cmake \
--system-libs \
--no-system-cppdap \
--generator=Ninja \
--parallel=$(nproc)
- runs: |
ninja
- runs: |
DESTDIR="${{targets.destdir}}" ninja install
- uses: strip
update:
enabled: true
manual: true # be careful upgrading cmake as it is a core package
release-monitor:
identifier: 306
test:
environment:
contents:
packages:
- make
- gcc
- autoconf
- automake
- build-base
pipeline:
- working-directory: wolfi-tests
runs: |
cmake --version
ccmake --version
ccmake --help
cmake --help
cpack --version
cpack --help
ctest --version
ctest --help
- working-directory: wolfi-tests
runs: |
mkdir -p build
cd build
cmake ..
make
./hello_wolfi