forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmake-bootstrap.yaml
78 lines (70 loc) · 1.72 KB
/
cmake-bootstrap.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
package:
name: cmake-bootstrap
version: 3.29.0
epoch: 2
description: "Bootstrap CMake without using system libraries, enabling to use CMake to build system libraries used by CMake"
dependencies:
provider-priority: 5
provides:
- cmake=${{package.full-version}}
copyright:
- license: BSD-3-Clause
environment:
contents:
packages:
- build-base
- busybox
- openssf-compiler-options
- openssl-dev
- samurai
pipeline:
- uses: fetch
with:
uri: https://www.cmake.org/files/v3.29/cmake-${{package.version}}.tar.gz
expected-sha256: a0669630aae7baa4a8228048bf30b622f9e9fd8ee8cedb941754e9e38686c778
# cmake-bootstrap uses all vendored deps only, such that we can
# build them with cmake-bootstrap, before building the full cmake
- runs: |
./bootstrap \
--prefix=/usr \
--mandir=/share/man \
--datadir=/share/cmake \
--docdir=/share/doc/cmake \
--no-system-libs \
--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
cmake --help
cpack --version
cpack --help
ctest --version
ctest --help
- working-directory: wolfi-tests
runs: |
mkdir -p build
cd build
cmake ..
make
./hello_wolfi