|
| 1 | +# Use, modification, and distribution are |
| 2 | +# subject to the Boost Software License, Version 1.0. (See accompanying |
| 3 | +# file LICENSE.txt) |
1 | 4 | # |
2 | | -# Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com) |
3 | | -# |
4 | | -# Distributed under the Boost Software License, Version 1.0. (See accompanying |
5 | | -# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 5 | +# Copyright Rene Rivera 2020. |
| 6 | +# Copyright Alan de Freitas 2022. |
| 7 | + |
| 8 | +# For Drone CI we use the Starlark scripting language to reduce duplication. |
| 9 | +# As the yaml syntax for Drone CI is rather limited. |
6 | 10 | # |
7 | | -# Official repository: https://github.com/CPPAlliance/buffers |
8 | 11 | # |
9 | 12 |
|
10 | 13 | def main(ctx): |
11 | 14 | return generate( |
12 | 15 | # Compilers |
13 | | - ['gcc >=5.0', |
14 | | - 'clang >=3.8', |
15 | | - 'msvc >=14.1', |
16 | | - 'arm64-gcc latest', |
17 | | - 's390x-gcc latest', |
18 | | - 'apple-clang *', |
19 | | - 'arm64-clang latest', |
20 | | - 's390x-clang latest', |
21 | | - # 'x86-msvc latest' |
22 | | - ], |
| 16 | + [ |
| 17 | + 'gcc >=5.0', |
| 18 | + 'clang >=3.8', |
| 19 | + 'msvc >=14.1', |
| 20 | + 'arm64-gcc latest', |
| 21 | + 's390x-gcc latest', |
| 22 | + # 'freebsd-gcc latest', |
| 23 | + 'apple-clang *', |
| 24 | + 'arm64-clang latest', |
| 25 | + 's390x-clang latest', |
| 26 | + 'freebsd-clang latest', |
| 27 | + 'x86-msvc latest' |
| 28 | + ], |
23 | 29 | # Standards |
24 | 30 | '>=11', |
25 | | - packages=[]) |
| 31 | + # Asan is delegated to GHA |
| 32 | + asan=False, |
| 33 | + docs=False, |
| 34 | + cache_dir='cache') + [ |
| 35 | + linux_cxx("GCC 12 (no-mutex)", "g++-12", packages="g++-12", buildscript="drone", buildtype="boost", |
| 36 | + image="cppalliance/droneubuntu2204:1", |
| 37 | + environment={'B2_TOOLSET': 'gcc-12', 'B2_DEFINES': 'BOOST_URL_DISABLE_THREADS=1', |
| 38 | + 'B2_CXXSTD': '17'}, globalenv={'B2_CI_VERSION': '1', 'B2_VARIANT': 'release'}), |
| 39 | + ] |
| 40 | + |
26 | 41 |
|
| 42 | +# from https://github.com/cppalliance/ci-automation |
| 43 | +load("@ci_automation//ci/drone/:functions.star", "linux_cxx", "windows_cxx", "osx_cxx", "freebsd_cxx", "generate") |
27 | 44 |
|
28 | | -# from https://github.com/boostorg/boost-ci |
29 | | -load("@boost_ci//ci/drone/:functions.star", "linux_cxx", "windows_cxx", "osx_cxx", "freebsd_cxx") |
30 | | -load("@url//:.drone.star", "generate") |
|
0 commit comments