Set configuration for index properly. run collection benchmark #35
Workflow file for this run
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
name: Build and Test Cmake | |
on: | |
- pull_request | |
jobs: | |
cmake-build: | |
name: Run Cmake | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
steps: | |
- name: install clang | |
run: | | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x llvm.sh | |
sudo ./llvm.sh 18 all | |
- name: install rust | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
# This is useful to avoid https://github.com/microsoft/vcpkg/issues/25349 | |
# which is caused by missing Git history on the vcpkg submodule which ports | |
# try to access. | |
# Do not use if not needed, since it slows down the checkout of sources. | |
fetch-depth: 1 | |
- name: submodule init | |
run: | | |
git submodule update --init --recursive | |
- uses: lukka/get-cmake@latest | |
- name: Setup vcpkg | |
uses: lukka/run-vcpkg@v11 | |
id: runvcpkg | |
with: | |
# This one is not needed, as it is the default value anyway. | |
vcpkgDirectory: '${{ github.workspace }}/tools/vcpkg' | |
vcpkgJsonGlob: '**/cmakepresets/vcpkg.json' | |
- name: Prints output of run-vcpkg's action. | |
run: echo "root='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}', triplet='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_DEFAULT_TRIPLET_OUT }}' " | |
- name: Run CMake+vcpkg+Ninja | |
uses: lukka/run-cmake@v10 | |
id: runcmake | |
env: | |
CC: clang-18 | |
CXX: clang++-18 | |
CMAKE_C_COMPILER: clang-18 | |
CMAKE_CXX_COMPILER: clang++-18 | |
MKLROOT: ${{ github.workspace }}/builds/debug/vcpkg_installed/x64-linux/lib/intel64 | |
with: | |
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt' | |
configurePresetAdditionalArgs: "['-DOpenMP_CXX_FLAGS=-fopenmp=libiomp5', '-DOpenMP_CXX_LIB_NAMES=libiomp5', '-DOpenMP_libiomp5_LIBRARY=${{ github.workspace }}/builds/debug/vcpkg_installed/x64-linux/lib/intel64/libiomp5.so']" | |
configurePreset: 'debug' | |
buildPreset: 'debug' | |
testPreset: 'debug' | |
testPresetCmdString: "['lintdb-tests', '--test-dir', 'builds/debug']" | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: build-dir | |
path: /home/runner/work/LintDB/LintDB/builds/debug | |
retention-days: 1 | |
overwrite: true | |