Просмотр исходного кода

New bootstrap-p3

default_compile_flags
vector-of-bool 5 лет назад
Родитель
Сommit
44be1e12b3
2 измененных файлов: 8 добавлений и 7 удалений
  1. +3
    -3
      azure-pipelines.yml
  2. +5
    -4
      tools/ci.py

+ 3
- 3
azure-pipelines.yml Просмотреть файл

echo Executing Build and Tests echo Executing Build and Tests
reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f || exit 1 reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f || exit 1
python -m pip install pytest pytest-xdist || exit 1 python -m pip install pytest pytest-xdist || exit 1
python -u tools/ci.py -B download --cxx cl.exe -T tools\msvc.dds -T2 tools\msvc.p2.dds || exit 1
python -u tools/ci.py -B download --cxx cl.exe -T tools\msvc.dds || exit 1
displayName: Full CI displayName: Full CI
- publish: _build/dds.exe - publish: _build/dds.exe
artifact: DDS Executable - Windows VS2019 artifact: DDS Executable - Windows VS2019
sudo apt install -y python3-minimal g++-8 sudo apt install -y python3-minimal g++-8
python3 -m pip install pytest pytest-xdist python3 -m pip install pytest pytest-xdist
displayName: Prepare System displayName: Prepare System
- script: python3 -u tools/ci.py -B download --cxx g++-8 -T tools/gcc-8.dds -T2 tools/gcc-8.p2.dds
- script: python3 -u tools/ci.py -B download --cxx g++-8 -T tools/gcc-8.dds
displayName: Full CI displayName: Full CI
- publish: _build/dds - publish: _build/dds
artifact: DDS Executable - Linux artifact: DDS Executable - Linux
- script: | - script: |
set -eu set -eu
python3 -m pip install pytest pytest-xdist python3 -m pip install pytest pytest-xdist
python3 -u tools/ci.py -B download --cxx g++-8 -T tools/gcc-8.dds -T2 tools/gcc-8.p2.dds
python3 -u tools/ci.py -B download --cxx g++-8 -T tools/gcc-8.dds
displayName: Build and Run Unit Tests displayName: Build and Run Unit Tests
- publish: _build/dds - publish: _build/dds
artifact: DDS Executable - macOS artifact: DDS Executable - macOS

+ 5
- 4
tools/ci.py Просмотреть файл

if filename is None: if filename is None:
raise RuntimeError(f'We do not have a prebuilt DDS binary for ' raise RuntimeError(f'We do not have a prebuilt DDS binary for '
f'the "{sys.platform}" platform') f'the "{sys.platform}" platform')
url = f'https://github.com/vector-of-bool/dds/releases/download/bootstrap-p2/{filename}'
url = f'https://github.com/vector-of-bool/dds/releases/download/bootstrap-p3/{filename}'


print(f'Downloading prebuilt DDS executable: {url}') print(f'Downloading prebuilt DDS executable: {url}')
stream = urllib.request.urlopen(url) stream = urllib.request.urlopen(url)
) )
parser.add_argument( parser.add_argument(
'--cxx', '--cxx',
help='The name/path of the C++ compiler to use.',
required=True)
help='The name/path of the C++ compiler to use.')
parser.add_argument( parser.add_argument(
'--toolchain', '--toolchain',
'-T', '-T',
args = parser.parse_args(argv) args = parser.parse_args(argv)


opts = CIOptions( opts = CIOptions(
cxx=Path(args.cxx), toolchain=args.toolchain, skip_deps=args.skip_deps)
cxx=Path(args.cxx or 'unspecified'), toolchain=args.toolchain, skip_deps=args.skip_deps)


if args.bootstrap_with == 'build': if args.bootstrap_with == 'build':
if args.cxx is None:
raise RuntimeError('`--cxx` must be given when using `--bootstrap-with=build`')
_do_bootstrap_build(opts) _do_bootstrap_build(opts)
elif args.bootstrap_with == 'download': elif args.bootstrap_with == 'download':
_do_bootstrap_download() _do_bootstrap_download()

Загрузка…
Отмена
Сохранить