-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from samansmink/remove-deprecated-chain
Disable deprecated code from aws sdk
- Loading branch information
Showing
10 changed files
with
27 additions
and
171 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 |
---|---|---|
|
@@ -52,7 +52,7 @@ jobs: | |
- name: Setup vcpkg | ||
uses: lukka/[email protected] | ||
with: | ||
vcpkgGitCommitId: a42af01b72c28a8e1d7b48107b33e4f286a55ef6 | ||
vcpkgGitCommitId: a1a1cbc975abf909a6c8985a6a2b8fe20bbd9bd6 | ||
|
||
- name: Build | ||
shell: bash | ||
|
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 |
---|---|---|
|
@@ -2,3 +2,6 @@ | |
path = duckdb | ||
url = https://github.com/duckdb/duckdb | ||
branch = main | ||
[submodule "extension-ci-tools"] | ||
path = extension-ci-tools | ||
url = [email protected]:duckdb/extension-ci-tools.git |
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,121 +1,8 @@ | ||
.PHONY: all clean format debug release duckdb_debug duckdb_release pull update | ||
PROJ_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) | ||
|
||
all: release | ||
# Configuration of extension | ||
EXT_NAME=quack | ||
EXT_CONFIG=${PROJ_DIR}extension_config.cmake | ||
|
||
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
PROJ_DIR := $(dir $(MKFILE_PATH)) | ||
|
||
ifeq ($(OS),Windows_NT) | ||
TEST_PATH="/test/Release/unittest.exe" | ||
else | ||
TEST_PATH="/test/unittest" | ||
endif | ||
|
||
OSX_BUILD_UNIVERSAL_FLAG= | ||
ifneq (${OSX_BUILD_ARCH}, "") | ||
OSX_BUILD_UNIVERSAL_FLAG=-DOSX_BUILD_ARCH=${OSX_BUILD_ARCH} | ||
endif | ||
ifeq (${STATIC_LIBCPP}, 1) | ||
STATIC_LIBCPP=-DSTATIC_LIBCPP=TRUE | ||
endif | ||
ifeq (${DONT_STATIC_LINK_DUCKDB}, 1) | ||
STATIC_LINK_DUCKDB_FLAG=-DEXTENSION_STATIC_BUILD=0 | ||
else | ||
STATIC_LINK_DUCKDB_FLAG=-DEXTENSION_STATIC_BUILD=1 | ||
endif | ||
|
||
VCPKG_TOOLCHAIN_PATH?= | ||
ifneq ("${VCPKG_TOOLCHAIN_PATH}", "") | ||
TOOLCHAIN_FLAGS:=${TOOLCHAIN_FLAGS} -DVCPKG_MANIFEST_DIR='${PROJ_DIR}' -DVCPKG_BUILD=1 -DCMAKE_TOOLCHAIN_FILE='${VCPKG_TOOLCHAIN_PATH}' | ||
endif | ||
ifneq ("${VCPKG_TARGET_TRIPLET}", "") | ||
TOOLCHAIN_FLAGS:=${TOOLCHAIN_FLAGS} -DVCPKG_TARGET_TRIPLET='${VCPKG_TARGET_TRIPLET}' | ||
endif | ||
|
||
ifeq ($(GEN),ninja) | ||
GENERATOR=-G "Ninja" | ||
FORCE_COLOR=-DFORCE_COLORED_OUTPUT=1 | ||
endif | ||
|
||
BUILD_FLAGS=-DBUILD_EXTENSIONS="tpch;httpfs" ${STATIC_LINK_DUCKDB_FLAG} ${OSX_BUILD_UNIVERSAL_FLAG} ${STATIC_LIBCPP} ${DISABLE_UNITY_FLAG} ${TOOLCHAIN_FLAGS} -DDUCKDB_EXPLICIT_PLATFORM='${DUCKDB_PLATFORM}' | ||
|
||
CLIENT_FLAGS := | ||
|
||
# These flags will make DuckDB build the extension | ||
EXTENSION_FLAGS=\ | ||
-DDUCKDB_EXTENSION_NAMES="aws" \ | ||
-DDUCKDB_EXTENSION_AWS_PATH="$(PROJ_DIR)" \ | ||
-DDUCKDB_EXTENSION_AWS_SHOULD_LINK=1 \ | ||
-DDUCKDB_EXTENSION_AWS_LOAD_TESTS=1 \ | ||
-DDUCKDB_EXTENSION_AWS_TEST_PATH="$(PROJ_DIR)test" \ | ||
-DDUCKDB_EXTENSION_AWS_INCLUDE_PATH="$(PROJ_DIR)src/include" \ | ||
-DDUCKDB_EXTENSION_AWS_VERSION="$(PROJ_DIR)src/include" \ | ||
|
||
|
||
pull: | ||
git submodule init | ||
git submodule update --recursive --remote | ||
|
||
clean: | ||
rm -rf build | ||
rm -rf testext | ||
cd duckdb && make clean | ||
|
||
# Main build | ||
debug: | ||
mkdir -p build/debug && \ | ||
cmake $(GENERATOR) $(FORCE_COLOR) $(EXTENSION_FLAGS) ${CLIENT_FLAGS} -DEXTENSION_STATIC_BUILD=1 -DCMAKE_BUILD_TYPE=Debug ${BUILD_FLAGS} -S ./duckdb/ -B build/debug && \ | ||
cmake --build build/debug --config Debug | ||
|
||
release: | ||
mkdir -p build/release && \ | ||
cmake $(GENERATOR) $(FORCE_COLOR) $(EXTENSION_FLAGS) ${CLIENT_FLAGS} -DEXTENSION_STATIC_BUILD=1 -DCMAKE_BUILD_TYPE=Release ${BUILD_FLAGS} -S ./duckdb/ -B build/release && \ | ||
cmake --build build/release --config Release | ||
|
||
# Client build | ||
debug_js: CLIENT_FLAGS=-DBUILD_NODE=1 -DBUILD_EXTENSIONS=json | ||
debug_js: debug | ||
|
||
debug_r: CLIENT_FLAGS=-DBUILD_R=1 | ||
debug_r: debug | ||
|
||
debug_python: CLIENT_FLAGS=-DBUILD_PYTHON=1 -DBUILD_EXTENSIONS=json;fts;tpch;visualizer;tpcds | ||
debug_python: debug | ||
|
||
release_js: CLIENT_FLAGS=-DBUILD_NODE=1 -DBUILD_EXTENSIONS=json | ||
release_js: release | ||
|
||
release_r: CLIENT_FLAGS=-DBUILD_R=1 | ||
release_r: release | ||
|
||
release_python: CLIENT_FLAGS=-DBUILD_PYTHON=1 -DBUILD_EXTENSIONS=json;fts;tpch;visualizer;tpcds | ||
release_python: release | ||
|
||
# Main tests | ||
test: test_release | ||
test_release: release | ||
./build/release/$(TEST_PATH) "$(PROJ_DIR)test/*" | ||
test_debug: debug | ||
./build/debug/$(TEST_PATH) "$(PROJ_DIR)test/*" | ||
|
||
# Client tests | ||
test_js: test_debug_js | ||
test_debug_js: debug_js | ||
cd duckdb/tools/nodejs && npm run test-path -- "../../../test/nodejs/**/*.js" | ||
|
||
test_release_js: release_js | ||
cd duckdb/tools/nodejs && npm run test-path -- "../../../test/nodejs/**/*.js" | ||
|
||
test_python: test_debug_python | ||
test_debug_python: debug_python | ||
cd test/python && python3 -m pytest | ||
|
||
test_release_python: release_python | ||
cd test/python && python3 -m pytest | ||
|
||
format: | ||
find src/ -iname *.hpp -o -iname *.cpp | xargs clang-format --sort-includes=0 -style=file -i | ||
cmake-format -i CMakeLists.txt | ||
|
||
update: | ||
git submodule update --remote --merge | ||
# Include the Makefile from extension-ci-tools | ||
include extension-ci-tools/makefiles/duckdb_extension.Makefile |
Submodule duckdb
updated
1111 files
Submodule extension-ci-tools
added at
f0c2c5
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,9 @@ | ||
# This file is included by DuckDB's build system. It specifies which extension to load | ||
|
||
# Extension from this repo | ||
duckdb_extension_load(aws | ||
SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR} | ||
LOAD_TESTS | ||
) | ||
|
||
duckdb_extension_load(httpfs) |
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