2021-04-15 17:39:45 +00:00
|
|
|
local default_deps_base='libsystemd-dev python3-dev libuv1-dev libunbound-dev nettle-dev libssl-dev libevent-dev libsqlite3-dev libcurl4-openssl-dev';
|
2020-05-15 23:29:05 +00:00
|
|
|
local default_deps_nocxx='libsodium-dev ' + default_deps_base; // libsodium-dev needs to be >= 1.0.18
|
|
|
|
local default_deps='g++ ' + default_deps_nocxx; // g++ sometimes needs replacement
|
2020-10-21 21:31:42 +00:00
|
|
|
local default_windows_deps='mingw-w64 zip nsis';
|
2021-02-26 17:26:48 +00:00
|
|
|
local docker_base = 'registry.oxen.rocks/lokinet-ci-';
|
2020-06-17 13:42:11 +00:00
|
|
|
|
2020-06-12 16:57:59 +00:00
|
|
|
local submodules = {
|
|
|
|
name: 'submodules',
|
|
|
|
image: 'drone/git',
|
2020-10-02 21:36:52 +00:00
|
|
|
commands: ['git fetch --tags', 'git submodule update --init --recursive --depth=1']
|
2020-06-12 16:57:59 +00:00
|
|
|
};
|
|
|
|
|
2020-11-10 10:25:37 +00:00
|
|
|
local apt_get_quiet = 'apt-get -o=Dpkg::Use-Pty=0 -q';
|
|
|
|
|
2020-05-23 03:32:00 +00:00
|
|
|
// Regular build on a debian-like system:
|
2020-05-20 23:35:25 +00:00
|
|
|
local debian_pipeline(name, image,
|
|
|
|
arch='amd64',
|
|
|
|
deps=default_deps,
|
|
|
|
build_type='Release',
|
|
|
|
lto=false,
|
|
|
|
werror=true,
|
|
|
|
cmake_extra='',
|
|
|
|
extra_cmds=[],
|
2021-04-27 20:34:17 +00:00
|
|
|
jobs=6,
|
2020-11-10 10:25:37 +00:00
|
|
|
loki_repo=false,
|
2020-05-20 23:35:25 +00:00
|
|
|
allow_fail=false) = {
|
2020-05-15 23:29:05 +00:00
|
|
|
kind: 'pipeline',
|
|
|
|
type: 'docker',
|
|
|
|
name: name,
|
|
|
|
platform: { arch: arch },
|
2020-05-23 03:32:00 +00:00
|
|
|
trigger: { branch: { exclude: ['debian/*', 'ubuntu/*'] } },
|
2020-05-15 23:29:05 +00:00
|
|
|
steps: [
|
2020-06-12 16:57:59 +00:00
|
|
|
submodules,
|
2020-05-15 23:29:05 +00:00
|
|
|
{
|
|
|
|
name: 'build',
|
|
|
|
image: image,
|
|
|
|
[if allow_fail then "failure"]: "ignore",
|
2020-05-23 03:36:30 +00:00
|
|
|
environment: { SSH_KEY: { from_secret: "SSH_KEY" } },
|
2020-05-15 23:29:05 +00:00
|
|
|
commands: [
|
2020-11-10 10:25:37 +00:00
|
|
|
'echo "Building on ${DRONE_STAGE_MACHINE}"',
|
2020-05-23 03:32:00 +00:00
|
|
|
'echo "man-db man-db/auto-update boolean false" | debconf-set-selections',
|
2020-11-10 10:25:37 +00:00
|
|
|
apt_get_quiet + ' update',
|
|
|
|
apt_get_quiet + ' install -y eatmydata',
|
|
|
|
] + (if loki_repo then [
|
|
|
|
'eatmydata ' + apt_get_quiet + ' install -y lsb-release',
|
|
|
|
'cp contrib/deb.loki.network.gpg /etc/apt/trusted.gpg.d',
|
|
|
|
'echo deb http://deb.loki.network $$(lsb_release -sc) main >/etc/apt/sources.list.d/loki.network.list',
|
|
|
|
'eatmydata ' + apt_get_quiet + ' update'
|
2020-06-26 21:52:04 +00:00
|
|
|
] else []
|
|
|
|
) + [
|
2020-11-10 10:25:37 +00:00
|
|
|
'eatmydata ' + apt_get_quiet + ' dist-upgrade -y',
|
|
|
|
'eatmydata ' + apt_get_quiet + ' install -y gdb cmake git ninja-build pkg-config ccache ' + deps,
|
2020-05-15 23:29:05 +00:00
|
|
|
'mkdir build',
|
|
|
|
'cd build',
|
2021-03-04 11:00:03 +00:00
|
|
|
'cmake .. -G Ninja -DWITH_SETCAP=OFF -DCMAKE_CXX_FLAGS=-fdiagnostics-color=always -DCMAKE_BUILD_TYPE='+build_type+' ' +
|
2020-05-15 23:29:05 +00:00
|
|
|
(if werror then '-DWARNINGS_AS_ERRORS=ON ' else '') +
|
2020-10-31 09:21:55 +00:00
|
|
|
'-DWITH_LTO=' + (if lto then 'ON ' else 'OFF ') +
|
2020-06-16 13:21:19 +00:00
|
|
|
cmake_extra,
|
2021-04-27 20:34:17 +00:00
|
|
|
'ninja -j' + jobs + ' -v',
|
2021-03-04 20:45:52 +00:00
|
|
|
'../contrib/ci/drone-gdb.sh ./test/testAll --use-colour yes',
|
2020-05-15 23:29:05 +00:00
|
|
|
] + extra_cmds,
|
|
|
|
}
|
2020-05-23 03:39:04 +00:00
|
|
|
],
|
|
|
|
};
|
2021-03-02 20:21:39 +00:00
|
|
|
local apk_builder(name, image, extra_cmds=[], allow_fail=false) = {
|
2021-03-02 18:18:22 +00:00
|
|
|
kind: 'pipeline',
|
|
|
|
type: 'docker',
|
|
|
|
name: name,
|
|
|
|
platform: {arch: "amd64"},
|
|
|
|
trigger: { branch: { exclude: ['debian/*', 'ubuntu/*'] } },
|
|
|
|
steps: [
|
|
|
|
submodules,
|
|
|
|
{
|
|
|
|
name: 'build',
|
|
|
|
image: image,
|
|
|
|
[if allow_fail then "failure"]: "ignore",
|
|
|
|
environment: { SSH_KEY: { from_secret: "SSH_KEY" }, ANDROID: "android" },
|
|
|
|
commands: [
|
|
|
|
"cd android",
|
|
|
|
"rm -f local.properties",
|
|
|
|
"echo 'sdk.dir=/usr/lib/android-sdk' >> local.properties",
|
|
|
|
"echo 'ndk.dir=/usr/lib/android-ndk' >> local.properties",
|
2021-03-03 01:23:37 +00:00
|
|
|
"GRADLE_USER_HOME=/cache/gradle/${DRONE_STAGE_MACHINE} gradle --no-daemon assembleDebug",
|
2021-03-02 18:18:22 +00:00
|
|
|
] + extra_cmds
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
// windows cross compile on debian
|
2020-06-17 13:42:11 +00:00
|
|
|
local windows_cross_pipeline(name, image,
|
2020-06-12 20:55:24 +00:00
|
|
|
arch='amd64',
|
|
|
|
build_type='Release',
|
2020-06-17 14:37:41 +00:00
|
|
|
lto=false,
|
2020-06-12 20:55:24 +00:00
|
|
|
werror=false,
|
|
|
|
cmake_extra='',
|
2020-06-18 11:30:07 +00:00
|
|
|
toolchain='32',
|
2020-06-12 20:55:24 +00:00
|
|
|
extra_cmds=[],
|
2021-04-27 20:34:17 +00:00
|
|
|
jobs=6,
|
2020-06-12 20:55:24 +00:00
|
|
|
allow_fail=false) = {
|
|
|
|
kind: 'pipeline',
|
|
|
|
type: 'docker',
|
|
|
|
name: name,
|
|
|
|
platform: { arch: arch },
|
|
|
|
trigger: { branch: { exclude: ['debian/*', 'ubuntu/*'] } },
|
|
|
|
steps: [
|
|
|
|
submodules,
|
|
|
|
{
|
|
|
|
name: 'build',
|
|
|
|
image: image,
|
|
|
|
[if allow_fail then "failure"]: "ignore",
|
2020-06-18 11:30:07 +00:00
|
|
|
environment: { SSH_KEY: { from_secret: "SSH_KEY" }, WINDOWS_BUILD_NAME: toolchain+"bit" },
|
2020-06-12 20:55:24 +00:00
|
|
|
commands: [
|
2020-11-10 10:25:37 +00:00
|
|
|
'echo "Building on ${DRONE_STAGE_MACHINE}"',
|
2020-10-21 21:31:42 +00:00
|
|
|
'echo "man-db man-db/auto-update boolean false" | debconf-set-selections',
|
2020-11-10 10:25:37 +00:00
|
|
|
apt_get_quiet + ' update',
|
|
|
|
apt_get_quiet + ' install -y eatmydata',
|
2021-01-19 00:45:04 +00:00
|
|
|
'eatmydata ' + apt_get_quiet + ' install -y build-essential cmake git ninja-build pkg-config ccache g++-mingw-w64-x86-64-posix nsis zip automake libtool',
|
2020-10-21 21:31:42 +00:00
|
|
|
'update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix',
|
|
|
|
'update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix',
|
2020-06-12 20:55:24 +00:00
|
|
|
'mkdir build',
|
|
|
|
'cd build',
|
2021-01-25 17:06:59 +00:00
|
|
|
'cmake .. -G Ninja -DCMAKE_EXE_LINKER_FLAGS=-fstack-protector -DCMAKE_CXX_FLAGS=-fdiagnostics-color=always -DCMAKE_TOOLCHAIN_FILE=../contrib/cross/mingw'+toolchain+'.cmake -DCMAKE_BUILD_TYPE='+build_type+' ' +
|
2020-06-12 20:55:24 +00:00
|
|
|
(if werror then '-DWARNINGS_AS_ERRORS=ON ' else '') +
|
|
|
|
(if lto then '' else '-DWITH_LTO=OFF ') +
|
2020-10-21 21:31:42 +00:00
|
|
|
"-DBUILD_STATIC_DEPS=ON -DDOWNLOAD_SODIUM=ON -DBUILD_PACKAGE=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF -DNATIVE_BUILD=OFF -DSTATIC_LINK=ON" +
|
2020-06-18 13:44:13 +00:00
|
|
|
cmake_extra,
|
2021-04-27 20:34:17 +00:00
|
|
|
'ninja -j' + jobs + ' -v package',
|
2020-06-12 20:55:24 +00:00
|
|
|
] + extra_cmds,
|
|
|
|
}
|
|
|
|
],
|
2020-06-12 22:48:49 +00:00
|
|
|
};
|
2020-05-23 03:39:04 +00:00
|
|
|
|
|
|
|
// Builds a snapshot .deb on a debian-like system by merging into the debian/* or ubuntu/* branch
|
2020-11-10 10:25:37 +00:00
|
|
|
local deb_builder(image, distro, distro_branch, arch='amd64', loki_repo=true) = {
|
2020-05-23 03:39:04 +00:00
|
|
|
kind: 'pipeline',
|
|
|
|
type: 'docker',
|
|
|
|
name: 'DEB (' + distro + (if arch == 'amd64' then '' else '/' + arch) + ')',
|
|
|
|
platform: { arch: arch },
|
|
|
|
environment: { distro_branch: distro_branch, distro: distro },
|
|
|
|
steps: [
|
2020-06-12 16:57:59 +00:00
|
|
|
submodules,
|
2020-05-23 03:39:04 +00:00
|
|
|
{
|
|
|
|
name: 'build',
|
|
|
|
image: image,
|
|
|
|
failure: 'ignore',
|
|
|
|
environment: { SSH_KEY: { from_secret: "SSH_KEY" } },
|
|
|
|
commands: [
|
2020-11-10 10:25:37 +00:00
|
|
|
'echo "Building on ${DRONE_STAGE_MACHINE}"',
|
|
|
|
'echo "man-db man-db/auto-update boolean false" | debconf-set-selections'
|
|
|
|
] + (if loki_repo then [
|
|
|
|
'cp contrib/deb.loki.network.gpg /etc/apt/trusted.gpg.d',
|
|
|
|
'echo deb http://deb.loki.network $${distro} main >/etc/apt/sources.list.d/loki.network.list'
|
2020-05-23 03:39:04 +00:00
|
|
|
] else []) + [
|
2020-11-10 10:25:37 +00:00
|
|
|
apt_get_quiet + ' update',
|
|
|
|
apt_get_quiet + ' install -y eatmydata',
|
|
|
|
'eatmydata ' + apt_get_quiet + ' install -y git devscripts equivs ccache git-buildpackage python3-dev',
|
2020-05-23 03:39:04 +00:00
|
|
|
|||
|
|
|
|
# Look for the debian branch in this repo first, try upstream if that fails.
|
|
|
|
if ! git checkout $${distro_branch}; then
|
2021-01-19 12:39:53 +00:00
|
|
|
git remote add --fetch upstream https://github.com/oxen-io/loki-network.git &&
|
2020-05-23 03:39:04 +00:00
|
|
|
git checkout $${distro_branch}
|
|
|
|
fi
|
|
|
|
|||,
|
2020-11-10 10:25:37 +00:00
|
|
|
# Tell the merge how to resolve conflicts in the source .drone.jsonnet (we don't
|
|
|
|
# care about it at all since *this* .drone.jsonnet is already loaded).
|
|
|
|
'git config merge.ours.driver true',
|
|
|
|
'echo .drone.jsonnet merge=ours >>.gitattributes',
|
|
|
|
|
2020-05-23 03:39:04 +00:00
|
|
|
'git merge ${DRONE_COMMIT}',
|
|
|
|
'export DEBEMAIL="${DRONE_COMMIT_AUTHOR_EMAIL}" DEBFULLNAME="${DRONE_COMMIT_AUTHOR_NAME}"',
|
|
|
|
'gbp dch -S -s "HEAD^" --spawn-editor=never -U low',
|
2020-11-10 10:25:37 +00:00
|
|
|
'eatmydata mk-build-deps --install --remove --tool "' + apt_get_quiet + ' -o Debug::pkgProblemResolver=yes --no-install-recommends -y"',
|
2020-05-23 03:39:04 +00:00
|
|
|
'export DEB_BUILD_OPTIONS="parallel=$$(nproc)"',
|
2020-11-10 10:25:37 +00:00
|
|
|
#'grep -q lib debian/lokinet-bin.install || echo "/usr/lib/lib*.so*" >>debian/lokinet-bin.install',
|
2020-05-23 03:39:04 +00:00
|
|
|
'debuild -e CCACHE_DIR -b',
|
|
|
|
'./contrib/ci/drone-debs-upload.sh ' + distro,
|
|
|
|
]
|
|
|
|
}
|
2020-05-15 23:29:05 +00:00
|
|
|
]
|
|
|
|
};
|
|
|
|
|
2021-03-02 18:18:22 +00:00
|
|
|
|
2020-05-23 14:46:45 +00:00
|
|
|
// Macos build
|
2021-04-27 20:34:17 +00:00
|
|
|
local mac_builder(name,
|
|
|
|
build_type='Release',
|
|
|
|
werror=true,
|
|
|
|
cmake_extra='',
|
|
|
|
extra_cmds=[],
|
|
|
|
jobs=6,
|
|
|
|
allow_fail=false) = {
|
2020-05-23 14:46:45 +00:00
|
|
|
kind: 'pipeline',
|
|
|
|
type: 'exec',
|
|
|
|
name: name,
|
|
|
|
platform: { os: 'darwin', arch: 'amd64' },
|
|
|
|
steps: [
|
2020-06-12 16:57:59 +00:00
|
|
|
{ name: 'submodules', commands: ['git fetch --tags', 'git submodule update --init --recursive'] },
|
2020-05-23 14:46:45 +00:00
|
|
|
{
|
|
|
|
name: 'build',
|
|
|
|
environment: { SSH_KEY: { from_secret: "SSH_KEY" } },
|
|
|
|
commands: [
|
2020-11-10 10:25:37 +00:00
|
|
|
'echo "Building on ${DRONE_STAGE_MACHINE}"',
|
2020-05-23 14:46:45 +00:00
|
|
|
// If you don't do this then the C compiler doesn't have an include path containing
|
|
|
|
// basic system headers. WTF apple:
|
|
|
|
'export SDKROOT="$(xcrun --sdk macosx --show-sdk-path)"',
|
2021-01-12 14:46:44 +00:00
|
|
|
'ulimit -n 1024', // because macos sets ulimit to 256 for some reason yeah idk
|
2020-05-23 14:46:45 +00:00
|
|
|
'mkdir build',
|
|
|
|
'cd build',
|
|
|
|
'cmake .. -G Ninja -DCMAKE_CXX_FLAGS=-fcolor-diagnostics -DCMAKE_BUILD_TYPE='+build_type+' ' +
|
2020-06-18 13:44:13 +00:00
|
|
|
(if werror then '-DWARNINGS_AS_ERRORS=ON ' else '') + cmake_extra,
|
2021-04-27 20:34:17 +00:00
|
|
|
'ninja -j' + jobs + ' -v',
|
2021-03-04 20:45:52 +00:00
|
|
|
'./test/testAll --use-colour yes',
|
2020-05-23 14:46:45 +00:00
|
|
|
] + extra_cmds,
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
2020-05-23 03:39:04 +00:00
|
|
|
|
2020-05-15 23:29:05 +00:00
|
|
|
[
|
|
|
|
{
|
|
|
|
name: 'lint check',
|
|
|
|
kind: 'pipeline',
|
|
|
|
type: 'docker',
|
|
|
|
steps: [{
|
2021-02-26 17:26:48 +00:00
|
|
|
name: 'build', image: 'registry.oxen.rocks/lokinet-ci-lint',
|
2020-05-15 23:29:05 +00:00
|
|
|
commands: [
|
2020-11-10 10:25:37 +00:00
|
|
|
'echo "Building on ${DRONE_STAGE_MACHINE}"',
|
|
|
|
apt_get_quiet + ' update',
|
|
|
|
apt_get_quiet + ' install -y eatmydata',
|
2021-03-05 17:30:54 +00:00
|
|
|
'eatmydata ' + apt_get_quiet + ' install -y git clang-format-11',
|
2020-06-12 18:32:13 +00:00
|
|
|
'./contrib/ci/drone-format-verify.sh']
|
2020-05-15 23:29:05 +00:00
|
|
|
}]
|
|
|
|
},
|
2020-05-23 03:32:00 +00:00
|
|
|
|
|
|
|
// Various debian builds
|
2020-10-31 09:21:55 +00:00
|
|
|
debian_pipeline("Debian sid (amd64)", "debian:sid"),
|
2020-11-13 14:00:04 +00:00
|
|
|
debian_pipeline("Debian sid/Debug (amd64)", "debian:sid", build_type='Debug'),
|
2021-02-26 17:26:48 +00:00
|
|
|
debian_pipeline("Debian sid/clang-11 (amd64)", docker_base+'debian-sid', deps='clang-11 '+default_deps_nocxx,
|
2020-10-31 09:21:55 +00:00
|
|
|
cmake_extra='-DCMAKE_C_COMPILER=clang-11 -DCMAKE_CXX_COMPILER=clang++-11 '),
|
2020-05-15 23:29:05 +00:00
|
|
|
debian_pipeline("Debian buster (i386)", "i386/debian:buster", cmake_extra='-DDOWNLOAD_SODIUM=ON'),
|
2021-02-26 17:26:48 +00:00
|
|
|
debian_pipeline("Ubuntu focal (amd64)", docker_base+'ubuntu-focal'),
|
2020-09-22 20:10:38 +00:00
|
|
|
debian_pipeline("Ubuntu bionic (amd64)", "ubuntu:bionic", deps='g++-8 ' + default_deps_nocxx,
|
2020-11-10 10:25:37 +00:00
|
|
|
cmake_extra='-DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8', loki_repo=true),
|
2020-05-23 03:32:00 +00:00
|
|
|
|
|
|
|
// ARM builds (ARM64 and armhf)
|
2021-04-27 20:34:17 +00:00
|
|
|
debian_pipeline("Debian sid (ARM64)", "debian:sid", arch="arm64", jobs=4),
|
|
|
|
debian_pipeline("Debian buster (armhf)", "arm32v7/debian:buster", arch="arm64", cmake_extra='-DDOWNLOAD_SODIUM=ON', jobs=4),
|
2021-01-04 21:17:29 +00:00
|
|
|
// Static armhf build (gets uploaded)
|
2021-01-19 00:45:04 +00:00
|
|
|
debian_pipeline("Static (buster armhf)", "arm32v7/debian:buster", arch="arm64", deps='g++ python3-dev automake libtool',
|
2021-01-04 21:17:29 +00:00
|
|
|
cmake_extra='-DBUILD_STATIC_DEPS=ON -DBUILD_SHARED_LIBS=OFF -DSTATIC_LINK=ON ' +
|
|
|
|
'-DCMAKE_CXX_FLAGS="-march=armv7-a+fp" -DCMAKE_C_FLAGS="-march=armv7-a+fp" -DNATIVE_BUILD=OFF ' +
|
|
|
|
'-DWITH_SYSTEMD=OFF',
|
|
|
|
extra_cmds=[
|
|
|
|
'../contrib/ci/drone-check-static-libs.sh',
|
|
|
|
'UPLOAD_OS=linux-armhf ../contrib/ci/drone-static-upload.sh'
|
2021-04-27 20:34:17 +00:00
|
|
|
],
|
|
|
|
jobs=4),
|
2021-03-02 18:18:22 +00:00
|
|
|
// android apk builder
|
|
|
|
apk_builder("android apk", "registry.oxen.rocks/lokinet-ci-android", extra_cmds=['UPLOAD_OS=anrdoid ../contrib/ci/drone-static-upload.sh']),
|
2020-06-12 22:48:49 +00:00
|
|
|
|
2020-11-11 00:10:09 +00:00
|
|
|
// Windows builds (x64)
|
2021-02-26 17:26:48 +00:00
|
|
|
windows_cross_pipeline("Windows (amd64)", docker_base+'debian-win32-cross',
|
2020-06-18 11:30:07 +00:00
|
|
|
toolchain='64', extra_cmds=[
|
2020-06-22 14:30:38 +00:00
|
|
|
'../contrib/ci/drone-static-upload.sh'
|
2020-06-17 13:42:11 +00:00
|
|
|
]),
|
2020-05-23 03:32:00 +00:00
|
|
|
|
2020-05-23 03:36:30 +00:00
|
|
|
// Static build (on bionic) which gets uploaded to builds.lokinet.dev:
|
2021-02-26 17:26:48 +00:00
|
|
|
debian_pipeline("Static (bionic amd64)", docker_base+'ubuntu-bionic', deps='g++-8 python3-dev automake libtool', lto=true,
|
2020-06-16 22:17:41 +00:00
|
|
|
cmake_extra='-DBUILD_STATIC_DEPS=ON -DBUILD_SHARED_LIBS=OFF -DSTATIC_LINK=ON -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8 ' +
|
2020-10-03 19:23:13 +00:00
|
|
|
'-DCMAKE_CXX_FLAGS="-march=x86-64 -mtune=haswell" -DCMAKE_C_FLAGS="-march=x86-64 -mtune=haswell" -DNATIVE_BUILD=OFF ' +
|
2020-11-06 18:48:28 +00:00
|
|
|
'-DWITH_SYSTEMD=OFF',
|
2020-05-23 03:36:30 +00:00
|
|
|
extra_cmds=[
|
|
|
|
'../contrib/ci/drone-check-static-libs.sh',
|
|
|
|
'../contrib/ci/drone-static-upload.sh'
|
|
|
|
]),
|
|
|
|
|
2020-06-08 19:15:54 +00:00
|
|
|
// integration tests
|
|
|
|
debian_pipeline("Router Hive", "ubuntu:focal", deps='python3-dev python3-pytest python3-pybind11 ' + default_deps,
|
2020-08-28 13:59:29 +00:00
|
|
|
cmake_extra='-DWITH_HIVE=ON'),
|
2020-06-08 19:15:54 +00:00
|
|
|
|
2020-05-23 03:39:04 +00:00
|
|
|
// Deb builds:
|
|
|
|
deb_builder("debian:sid", "sid", "debian/sid"),
|
2020-11-10 10:25:37 +00:00
|
|
|
deb_builder("debian:buster", "buster", "debian/buster"),
|
2020-05-23 03:39:04 +00:00
|
|
|
deb_builder("ubuntu:focal", "focal", "ubuntu/focal"),
|
|
|
|
deb_builder("debian:sid", "sid", "debian/sid", arch='arm64'),
|
|
|
|
|
2020-05-23 14:46:45 +00:00
|
|
|
// Macos builds:
|
|
|
|
mac_builder('macOS (Release)'),
|
|
|
|
mac_builder('macOS (Debug)', build_type='Debug'),
|
2020-06-17 00:36:18 +00:00
|
|
|
mac_builder('macOS (Static)', cmake_extra='-DBUILD_STATIC_DEPS=ON -DBUILD_SHARED_LIBS=OFF -DSTATIC_LINK=ON -DDOWNLOAD_SODIUM=FORCE -DDOWNLOAD_CURL=FORCE -DDOWNLOAD_UV=FORCE',
|
2020-05-23 14:46:45 +00:00
|
|
|
extra_cmds=[
|
|
|
|
'../contrib/ci/drone-check-static-libs.sh',
|
|
|
|
'../contrib/ci/drone-static-upload.sh'
|
|
|
|
]),
|
2020-05-15 23:29:05 +00:00
|
|
|
]
|