-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into master
- Loading branch information
Showing
38 changed files
with
3,223 additions
and
1,108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
local debian_pipeline(name, image, arch='amd64', deps='g++ libsodium-dev libzmq3-dev', cmake_extra='', build_type='Release', extra_cmds=[], allow_fail=false) = { | ||
kind: 'pipeline', | ||
type: 'docker', | ||
name: name, | ||
platform: { arch: arch }, | ||
environment: { CLICOLOR_FORCE: '1' }, // Lets color through ninja (1.9+) | ||
steps: [ | ||
{ | ||
name: 'build', | ||
image: image, | ||
[if allow_fail then "failure"]: "ignore", | ||
commands: [ | ||
'apt-get update', | ||
'apt-get install -y eatmydata', | ||
'eatmydata apt-get dist-upgrade -y', | ||
'eatmydata apt-get install -y cmake git ninja-build pkg-config ccache ' + deps, | ||
'git submodule update --init --recursive', | ||
'mkdir build', | ||
'cd build', | ||
'cmake .. -G Ninja -DCMAKE_CXX_FLAGS=-fdiagnostics-color=always -DCMAKE_BUILD_TYPE='+build_type+' -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ' + cmake_extra, | ||
'ninja -v', | ||
'./tests/tests --use-colour yes' | ||
] + extra_cmds, | ||
} | ||
] | ||
}; | ||
|
||
[ | ||
debian_pipeline("Ubuntu focal (amd64)", "ubuntu:focal"), | ||
debian_pipeline("Ubuntu bionic (amd64)", "ubuntu:bionic", deps='libsodium-dev g++-8', | ||
cmake_extra='-DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8'), | ||
debian_pipeline("Debian sid (amd64)", "debian:sid"), | ||
debian_pipeline("Debian sid/Debug (amd64)", "debian:sid", build_type='Debug'), | ||
debian_pipeline("Debian sid/clang-10 (amd64)", "debian:sid", deps='clang-10 lld-10 libsodium-dev libzmq3-dev', | ||
cmake_extra='-DCMAKE_C_COMPILER=clang-10 -DCMAKE_CXX_COMPILER=clang++-10 ' + std.join(' ', [ | ||
'-DCMAKE_'+type+'_LINKER_FLAGS=-fuse-ld=lld-10' for type in ['EXE','MODULE','SHARED','STATIC']])), | ||
debian_pipeline("Debian buster (amd64)", "debian:buster"), | ||
debian_pipeline("Debian buster (i386)", "i386/debian:buster"), | ||
debian_pipeline("Ubuntu bionic (ARM64)", "ubuntu:bionic", arch="arm64", deps='libsodium-dev g++-8', | ||
cmake_extra='-DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8'), | ||
debian_pipeline("Debian sid (ARM64)", "debian:sid", arch="arm64"), | ||
debian_pipeline("Debian buster (armhf)", "arm32v7/debian:buster", arch="arm64"), | ||
{ | ||
kind: 'pipeline', | ||
type: 'exec', | ||
name: 'macOS (Catalina w/macports)', | ||
platform: { os: 'darwin', arch: 'amd64' }, | ||
environment: { CLICOLOR_FORCE: '1' }, // Lets color through ninja (1.9+) | ||
steps: [ | ||
{ | ||
name: 'build', | ||
commands: [ | ||
'git submodule update --init --recursive', | ||
'mkdir build', | ||
'cd build', | ||
'cmake .. -G Ninja -DCMAKE_CXX_FLAGS=-fcolor-diagnostics -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER_LAUNCHER=ccache', | ||
'ninja -v', | ||
'./tests/tests --use-colour yes' | ||
], | ||
} | ||
] | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.