Skip to content

Commit

Permalink
Install latest TileDB release for ASAN CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-dark committed Dec 16, 2024
1 parent 1825a77 commit 28e0b3b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/libtiledbsoma-asan-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,26 @@ jobs:
asan:
runs-on: ubuntu-24.04
steps:
- name: Checkout TileDB-SOMA
uses: actions/checkout@v4
- name: Build libtiledbsoma
run: ./scripts/bld --build=ASAN --no-tiledb-deprecated=true --werror=true
- name: Run libTileDB-SOMA unittests
run: ctest --test-dir build/libtiledbsoma -C ASAN --verbose --rerun-failed --output-on-failure
- name: Checkout TileDB-SOMA
uses: actions/checkout@v4
- name: Install pre-built libtiledb
run: |
mkdir -p external
# Please do not edit manually -- let scripts/update-tiledb-version.py update this
wget --quiet https://github.com/TileDB-Inc/TileDB/releases/download/2.27.0/tiledb-linux-x86_64-2.27.0-2862c30.tar.gz
tar -C external -xzf tiledb-*.tar.gz
ls external/lib/
- name: Build and install libtiledbsoma
run: |
cmake -S libtiledbsoma -B build-libtiledbsoma \
-D CMAKE_BUILD_TYPE=ASAN \
-D CMAKE_PREFIX_PATH=$(pwd)/external/ \
-D CMAKE_INSTALL_PREFIX:PATH=$(pwd)/external/ \
-D OVERRIDE_INSTALL_PREFIX=OFF \
-D DOWNLOAD_TILEDB_PREBUILT=OFF \
-D TILEDB_REMOVE_DEPRECATIONS=ON \
-D FORCE_BUILD_TILEDB=OFF
cmake --build build-libtiledbsoma -j 2
ls external/lib/
- name: Run C++ unittests
run: ctest --test-dir build/libtiledbsoma -C ASAN --verbose --rerun-failed --output-on-failure
5 changes: 5 additions & 0 deletions scripts/update-tiledb-version.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ def main(args):
)
update_version(filepath, new_version, new_hash)

filepath = (
f"{os.path.dirname(__file__)}/../.github/workflows/libtiledbsoma-asan-ci.yml"
)
update_version(filepath, new_version, new_hash)


if __name__ == "__main__":
description = (
Expand Down

0 comments on commit 28e0b3b

Please sign in to comment.