|
| 1 | +# Copyright (c) 2022 by Rivos Inc. |
| 2 | +# Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| 3 | +# SPDX-License-Identifier: Apache-2.0 |
| 4 | + |
| 5 | +include: |
| 6 | + - project: 'rv/it/int/rivos-sdk' |
| 7 | + ref: rivos/main |
| 8 | + file: '/packager/gitlab-ci-packaging-helper.yml' |
| 9 | + |
| 10 | +variables: |
| 11 | + GIT_STRATEGY: clone |
| 12 | + GIT_SUBMODULE_STRATEGY: recursive |
| 13 | + |
| 14 | +lint: |
| 15 | + extends: .pre-commit-lint |
| 16 | + |
| 17 | +nvidia-build: |
| 18 | + stage: build |
| 19 | + image: gitlab.ba.rivosinc.com:5050/rv/it/int/rivos-sdk/dpa-nvidia:latest |
| 20 | + tags: [nvidia-a30] |
| 21 | + dependencies: ["prepare-version"] |
| 22 | + script: |
| 23 | + - export DEBIAN_FRONTEND=noninteractive |
| 24 | + - > |
| 25 | + apt-get update -qq && |
| 26 | + apt-get install -qq -y |
| 27 | + libboost-atomic-dev |
| 28 | + libboost-context-dev |
| 29 | + libboost-date-time-dev |
| 30 | + libboost-filesystem-dev |
| 31 | + libboost-program-options-dev |
| 32 | + libboost-regex-dev |
| 33 | + libboost-system-dev |
| 34 | + libboost-thread-dev |
| 35 | + libgmock-dev |
| 36 | + tzdata |
| 37 | + # Build Velox |
| 38 | + - export CPU_TARGET=$(uname -m) # Needed to set proper CXX flags for target CPU |
| 39 | + - > |
| 40 | + cmake -B build -GNinja |
| 41 | + -DCMAKE_BUILD_TYPE=Debug |
| 42 | + -DCMAKE_INSTALL_PREFIX=_install |
| 43 | + -DCMAKE_CXX_STANDARD=17 |
| 44 | + -DCMAKE_CXX_FLAGS="-Wno-nullability-completeness -O2" |
| 45 | + -DCMAKE_POSITION_INDEPENDENT_CODE=ON |
| 46 | + -DCMAKE_PREFIX_PATH="/usr/lib/$(uname -m)-linux-gnu" |
| 47 | + -DVELOX_BUILD_MINIMAL=OFF |
| 48 | + -DVELOX_BUILD_TEST_UTILS=ON |
| 49 | + -DVELOX_BUILD_TESTING=ON |
| 50 | + -DVELOX_ENABLE_PARQUET=ON |
| 51 | + -DVELOX_ENABLE_SUBSTRAIT=ON |
| 52 | + -DVELOX_ENABLE_PARQUET=ON |
| 53 | + -DVELOX_ENABLE_HIVE_CONNECTOR=ON |
| 54 | + -DVELOX_CODEGEN_SUPPORT=OFF |
| 55 | + - cmake --build build |
| 56 | + - | |
| 57 | + export GTEST_OUTPUT=xml:$(pwd -P)/build/Testing/ |
| 58 | + (cd build && ctest -j$(nproc)) |
| 59 | + artifacts: |
| 60 | + when: always |
| 61 | + paths: |
| 62 | + - build/Testing |
| 63 | + reports: |
| 64 | + junit: build/Testing/*.xml |
0 commit comments