-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
97 additions
and
45 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ __pycache__/ | |
*.py[cod] | ||
*$py.class | ||
cmake-build-debug/ | ||
test/unittest_temp/ |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
cmake_minimum_required(VERSION 3.11) | ||
|
||
project(Kuzu_external VERSION 0.0.1 LANGUAGES CXX) | ||
|
||
find_package(Threads REQUIRED) | ||
|
||
set(CMAKE_FIND_PACKAGE_RESOLVE_SYMLINKS TRUE) | ||
set(CMAKE_CXX_STANDARD 20) | ||
set(CMAKE_CXX_STANDARD_REQUIRED True) | ||
set(CMAKE_POSITION_INDEPENDENT_CODE ON) | ||
find_program(CCACHE_PROGRAM ccache) | ||
if (CCACHE_PROGRAM) | ||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}") | ||
else () | ||
find_program(CCACHE_PROGRAM sccache) | ||
if (CCACHE_PROGRAM) | ||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}") | ||
endif () | ||
endif () | ||
|
||
include(arrow/apache_arrow.cmake) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
include(ExternalProject) | ||
|
||
set(CMAKE_POSITION_INDEPENDENT_CODE ON) | ||
|
||
ExternalProject_Add(apache_arrow | ||
GIT_REPOSITORY "https://github.com/apache/arrow" | ||
GIT_TAG 89f9a0948961f6e94f1ef5e4f310b707d22a3c11 | ||
PREFIX "${CMAKE_BINARY_DIR}/arrow/" | ||
INSTALL_DIR "${CMAKE_BINARY_DIR}/arrow/install" | ||
CONFIGURE_COMMAND | ||
${CMAKE_COMMAND} -G${CMAKE_GENERATOR} -DCMAKE_BUILD_TYPE=Release | ||
-DBUILD_WARNING_LEVEL=PRODUCTION -DARROW_DEPENDENCY_SOURCE=BUNDLED | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=${CMAKE_CXX_COMPILER_LAUNCHER} | ||
-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} | ||
-DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD} | ||
-DCMAKE_C_COMPILER_LAUNCHER=${CMAKE_C_COMPILER_LAUNCHER} | ||
-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/arrow/install | ||
-DCMAKE_MODULE_PATH=${CMAKE_MODULE_PATH} | ||
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DARROW_ALTIVEC=OFF | ||
-DARROW_USE_CCACHE=ON -DARROW_BOOST_USE_SHARED=OFF -DARROW_BUILD_SHARED=OFF | ||
-DARROW_BUILD_STATIC=ON -DARROW_COMPUTE=OFF -DARROW_CSV=ON -DARROW_IPC=ON -DARROW_JEMALLOC=OFF -DARROW_JSON=OFF | ||
-DARROW_PARQUET=ON -DARROW_SIMD_LEVEL=NONE -DARROW_RUNTIME_SIMD_LEVEL=NONE -DARROW_WITH_BROTLI=OFF | ||
-DARROW_WITH_LZ4=ON -Dlz4_SOURCE=BUNDLED -DARROW_WITH_PROTOBUF=OFF -DARROW_WITH_RAPIDJSON=OFF | ||
-DARROW_WITH_SNAPPY=ON -DSnappy_SOURCE=BUNDLED -DARROW_WITH_ZLIB=ON -DZLIB_SOURCE=BUNDLED | ||
-DARROW_WITH_ZSTD=ON -Dzstd_SOURCE=BUNDLED -DThrift_SOURCE=BUNDLED -DBOOST_SOURCE=BUNDLED -DARROW_WITH_RE2=OFF | ||
-DARROW_WITH_UTF8PROC=OFF -DARROW_BUILD_BENCHMARKS=OFF -DARROW_BUILD_EXAMPLES=OFF -DARROW_BUILD_INTEGRATION=OFF | ||
-DARROW_BUILD_UTILITIES=OFF -DARROW_BUILD_TESTS=OFF -DARROW_ENABLE_TIMING_TESTS=OFF -DARROW_FUZZING=OFF | ||
<SOURCE_DIR>/cpp | ||
UPDATE_COMMAND "") |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,21 @@ | ||
FROM python:3.9 | ||
|
||
ENV RUNNER_ALLOW_RUNASROOT=1 | ||
FROM ubuntu:22.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
# Install dependencies | ||
RUN apt-get update | ||
RUN apt-get install -y apt-transport-https curl gnupg | ||
RUN apt-get install -y cmake | ||
RUN apt-get install -y clang | ||
RUN apt-get install -y clang-format | ||
RUN apt-get install -y clang-13 | ||
RUN apt-get install -y nodejs | ||
RUN apt-get install -y jq | ||
RUN apt-get install -y ca-certificates lsb-release wget | ||
RUN wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb | ||
RUN apt-get install -y ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb | ||
RUN rm ./apache-arrow* | ||
RUN apt-get update | ||
RUN apt-get install -y libarrow-dev libparquet-dev | ||
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils | ||
RUN apt-get update && apt-get install -y g++ gcc clang-14 python3-dev python3-pip python-is-python3 cmake nodejs jq curl apt-transport-https gnupg sudo git clang-format-11 ca-certificates lsb-release wget | ||
|
||
RUN useradd --create-home runner | ||
USER runner | ||
|
||
# Install GitHub action runner | ||
RUN mkdir /actions-runner | ||
WORKDIR /actions-runner | ||
RUN curl -o actions-runner-linux-x64-2.298.2.tar.gz -L https://github.com/actions/runner/releases/download/v2.298.2/actions-runner-linux-x64-2.298.2.tar.gz | ||
RUN mkdir /home/runner/actions-runner | ||
WORKDIR /home/runner/actions-runner | ||
RUN curl -o actions-runner-linux-x64-2.298.2.tar.gz -L\ | ||
https://github.com/actions/runner/releases/download/v2.298.2/actions-runner-linux-x64-2.298.2.tar.gz | ||
RUN echo "0bfd792196ce0ec6f1c65d2a9ad00215b2926ef2c416b8d97615265194477117 actions-runner-linux-x64-2.298.2.tar.gz" | shasum -a 256 | ||
RUN tar xzf ./actions-runner-linux-x64-2.298.2.tar.gz | ||
|
||
COPY start.sh start.sh | ||
COPY --chown=runner:runner start.sh start.sh | ||
RUN chmod +x start.sh | ||
|
||
ENTRYPOINT ["./start.sh"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
|
||
cd /actions-runner | ||
cd /home/runner/actions-runner | ||
|
||
# Get registration token | ||
REG_TOKEN=$(curl \ | ||
|
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