Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up caching to speed up build and test. #231

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/scripts/build_with_sanitizer_and_run.sh

This file was deleted.

16 changes: 16 additions & 0 deletions .github/scripts/env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Subroutine to set up environment variables.

CORE_ROOT="$HOME/tiledb-core"

case "$(uname -s)" in
Linux)
OS="linux"
;;
Darwin)
OS="macos"
;;
*)
echo 'Unknown OS!'
exit 1
;;
esac
8 changes: 8 additions & 0 deletions .github/scripts/install_tiledb_binary.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -exo pipefail
. "${BASH_SOURCE%/*}/env.sh"
mkdir "$CORE_ROOT"
cd "$CORE_ROOT"
mkdir install
curl --location -o tiledb.tar.gz "https://github.com/TileDB-Inc/TileDB/releases/download/${CORE_VERSION}/tiledb-${OS}-x86_64-${CORE_VERSION}-${CORE_HASH}.tar.gz"
tar -C ./install -xf tiledb.tar.gz
4 changes: 0 additions & 4 deletions .github/scripts/install_tiledb_linux.sh

This file was deleted.

8 changes: 0 additions & 8 deletions .github/scripts/install_tiledb_linux_debug.sh

This file was deleted.

3 changes: 0 additions & 3 deletions .github/scripts/install_tiledb_macos.sh

This file was deleted.

23 changes: 23 additions & 0 deletions .github/scripts/install_tiledb_source.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
set -exo pipefail
. "${BASH_SOURCE%/*}/env.sh"
mkdir "$CORE_ROOT"
cd "$CORE_ROOT"
case "$OS" in
linux)
NPROC="$(nproc)"
;;
macos)
NPROC="$(sysctl -n hw.ncpu)"
;;
esac
git clone --depth 1 -b "$CORE_VERSION" https://github.com/TileDB-Inc/TileDB.git
cd TileDB
mkdir build
cd build
# BUILD_FLAGS is unquoted because it needs to expand into multiple strings.
cmake $BUILD_FLAGS -DCMAKE_INSTALL_PREFIX="${CORE_ROOT}/install" ..
make -j"$NPROC"

mkdir "${CORE_ROOT}/install"
make -C tiledb install
8 changes: 0 additions & 8 deletions .github/scripts/install_tiledb_source_linux.sh

This file was deleted.

7 changes: 0 additions & 7 deletions .github/scripts/install_tiledb_source_macos.sh

This file was deleted.

12 changes: 12 additions & 0 deletions .github/scripts/post_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
set -exo pipefail
. "${BASH_SOURCE%/*}/env.sh"

# Sets up the environment after installing or extracting TileDB.

if [ "$OS" = "linux" ]; then
/sbin/ldconfig -n "${CORE_ROOT}/install/lib"
fi

go env -w "CGO_CFLAGS=-I${CORE_ROOT}/install/include"
go env -w "CGO_LDFLAGS=-L${CORE_ROOT}/install/lib/ -Wl,-rpath,${CORE_ROOT}/install/lib/"
Loading