forked from blueprint-freespeech/ricochet-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrbm.conf
195 lines (193 loc) · 4.81 KB
/
rbm.conf
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# vim: filetype=yaml sw=2
debug: '[% GET ! ENV.RBM_NO_DEBUG %]'
compress_tar: gz
output_dir: 'out/[% project %]'
tmp_dir: '[% c("basedir") %]/tmp'
build_log: '[% GET ENV.RBM_LOGS_DIR ? ENV.RBM_LOGS_DIR : "logs" %]/[% project %][% IF c("var/osname") %]-[% c("var/osname") %][% END %][% IF c("var/arch") %]-[% c("var/arch") %][% END %].log'
# allow git tag signed using an expired key.
gpg_allow_expired_keys: 1
pkg_type: build
var:
# By default, we sort the list of installed packages. This allows sharing
# containers with identical list of packages, even if they are not listed
# in the same order. In the cases where the installation order is
# important, sort_deps should be set to 0.
sort_deps: 1
build_id: '[% sha256(c("var/build_id_txt", { num_procs => 4 })).substr(0, 6) %]'
# constructs a string from the build source, container arch, input files
# and generated build script
build_id_txt: |
[% c("version") %]
[% IF c("git_hash") || c("hg_hash"); GET c("abbrev"); END; %]
[% IF c("container/use_container") && ! c("container/global_disable") -%]
[% c("var/container/suite") %]
[% c("var/container/arch") %]
[% END -%]
input_files: [% c("input_files_id") %]
build:
[% SET step = c("step") -%]
[% c(step, { filename => 'f', output_dir => '/out', norec => {} }) %]
container:
suite: bullseye
arch: amd64
set_default_env: |
set -e
set -x
[% FOREACH env = c('ENV') -%]
export [% env.key %]="[% env.value %]"
[% END -%]
rootdir=$(pwd)
export SHELL=/bin/bash
export HOME=$rootdir
umask 0022
distdir=/var/tmp/$(whoami)/dist
projdir=$distdir/[% project %]
builddir=/var/tmp/$(whoami)/build
[% IF !c("container/use_container") || c("var/container/global_disable") -%]
rm -Rf $builddir $distdir
[% END -%]
mkdir -p $distdir
mkdir -p $projdir
mkdir -p $builddir
channel: stable
versions:
cmake: 3.25.2
# updating the gcc version will update the ABI requirements on libstdc++ on Linux
# see: https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html
gcc: 10.5.0
llvm-project: 16.0.4
mingw-w64: 11.0.0
binutils: '2.39'
# https://libevent.org/
libevent: 2.1.12
# https://zlib.net/
zlib: '1.3.1'
# https://www.openssl.org/source/
openssl: 3.0.15
# https://github.com/mtrojnar/osslsigncode/releases
osslsigncode: '2.9'
# https://gitlab.torproject.org/tpo/core/tor
tor: 0.4.8.13
# protobuf 3.22 series adds dependency to abseil
protobuf: 3.21.12
# https://download.qt.io/archive/qt/5.15/
qt: 5.15.15
# https://www.torproject.org/download/tor/
tor-expert-bundle: "14.0"
ricochet-refresh: 3.0.28
# https://sourceware.org/bzip2/
bzip2: 1.0.8
nsis: '3.09'
rust: 1.74.0
rcodesign: 0.22.0
linuxdeploy: 1-alpha-20231026-1
targets:
# Release channels
stable:
var:
stable: 1
channel: stable
alpha:
var:
alpha: 1
channel: alpha
testbuild:
var:
testbuild: 1
channel: testbuild
# Sign target
sign:
var:
sign: 1
# Linux targets
linux:
var:
linux: 1
osname: linux
os_deps:
- build-essential
- python
- automake
- libtool
- lib32stdc++6
- libc6-dev-i386
build-toolchain: toolchain-linux-gcc
linux-x86_64:
var:
arch: x86_64
linux-x86_64: 1
CFLAGS: -fPIC
CXXFLAGS: -fPIC
LDFLAGS:
linux-i686:
var:
arch: i686
arch_debian: i386
add_architecture: 1
arch_deps:
- lib32stdc++6
- libc6-dev-i386
linux-i686: 1
CFLAGS: -m32
CXXFLAGS: -m32
LDFLAGS: -m32
# macOS targets
macos:
var:
macos: 1
osname: macos
os_deps:
- build-essential
- python3
- automake
- libtool
- zip
- unzip
build-toolchain: toolchain-macos-clang
compiler_target: '[% c("var/arch") %]-apple-darwin'
macos-aarch64:
var:
arch: aarch64
arch_macos: arm64
macos-aarch64: 1
CFLAGS:
CXXFLAGS:
LDFLAGS:
macosx_deployment_target: '11.0'
macos-x86_64:
var:
arch: x86_64
arch_macos: x86_64
macos-x86_64: 1
CFLAGS:
CXXFLAGS:
LDFLAGS:
macosx_deployment_target: '10.14'
# Windows targets
windows:
var:
windows: 1
osname: windows
os_deps:
- build-essential
- python3
- automake
- libtool
- zip
- unzip
build-toolchain: toolchain-windows-clang
compiler_target: '[% c("var/arch") %]-w64-mingw32'
windows-x86_64:
var:
arch: x86_64
windows-x86_64: 1
CFLAGS:
CXXFLAGS:
LDFLAGS:
windows-i686:
var:
arch: i686
windows-i686: 1
CFLAGS:
CXXFLAGS:
LDFLAGS: