Skip to content

Commit

Permalink
ARROW-16228: [CI][Packaging][Conan] Add a job to test minimum build
Browse files Browse the repository at this point in the history
ci/conan/ is based on
https://github.com/conan-io/conan-center-index/tree/master/recipes/arrow/
.

We'll update ci/conan/ to follow the latest cpp/ changes such as new
build options and send a pull request the updates to
https://github.com/conan-io/conan-center-index/ when we release a new
version.

Closes apache#12918 from kou/ci-conan

Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
kou committed May 6, 2022
1 parent d9d7894 commit 3a646b3
Show file tree
Hide file tree
Showing 29 changed files with 2,654 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ DEVTOOLSET_VERSION=-1
# Please also update the crossbow configuration in order to keep the github
# actions cache up to date for the macOS wheels:
# https://github.com/ursacomputing/crossbow/blob/master/.github/workflows/cache_vcpkg.yml
# After commit 89295c9 openssl is only available as 3.0.2 which is
# incompatible with aws-sdk-cpp 1.8.3 see https://github.com/aws/aws-sdk-cpp/issues/1582 and causes issues on manylinux2010
#
# After commit 89295c9 openssl is only available as 3.0.2 which is
# incompatible with aws-sdk-cpp 1.8.3 see
# https://github.com/aws/aws-sdk-cpp/issues/1582 and causes issues on
# manylinux2010
VCPKG="89295c9"

# Use conanio/${CONAN} for "docker-compose run --rm conan". See
# https://github.com/conan-io/conan-docker-tools#readme for available
# images.
CONAN=gcc11
24 changes: 24 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2256,3 +2256,27 @@ distributions. opentelemetry-cpp is made available under the Apache License 2.0.

Copyright The OpenTelemetry Authors
SPDX-License-Identifier: Apache-2.0

--------------------------------------------------------------------------------

ci/conan/ is based on code from Conan Package and Dependency Manager.

Copyright (c) 2019 Conan.io

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
18 changes: 18 additions & 0 deletions ci/conan/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

/all/test_package/build/
29 changes: 29 additions & 0 deletions ci/conan/all/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# MIT License
#
# Copyright (c) 2019 Conan.io
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

cmake_minimum_required(VERSION 3.1)
project(cmake_wrapper)

include(conanbuildinfo.cmake)
conan_basic_setup()

add_subdirectory(source_subfolder/cpp)
68 changes: 68 additions & 0 deletions ci/conan/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# MIT License
#
# Copyright (c) 2019 Conan.io
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

sources:
"7.0.0":
url: "https://github.com/apache/arrow/archive/apache-arrow-7.0.0.tar.gz"
sha256: "57e13c62f27b710e1de54fd30faed612aefa22aa41fa2c0c3bacd204dd18a8f3"
"2.0.0":
url: "https://github.com/apache/arrow/archive/apache-arrow-2.0.0.tar.gz"
sha256: "ea299df9cf440cfc43393ce12ee6d9a4c9d0dfa9fde33c3bc9b70ec25520a844"
"1.0.0":
url: "https://github.com/apache/arrow/archive/apache-arrow-1.0.0.tar.gz"
sha256: "08fbd4c633c08939850d619ca0224c75d7a0526467c721c0838b8aa7efccb270"
patches:
"7.0.0":
- base_path: "source_subfolder"
patch_file: "patches/7.0.0-0001-cmake.patch"
- base_path: "source_subfolder"
patch_file: "patches/7.0.0-0002-jemalloc.patch"
- base_path: "source_subfolder"
patch_file: "patches/7.0.0-0003-mallctl-takes-size_t.patch"
- base_path: "source_subfolder"
patch_file: "patches/7.0.0-0004-remove-find-modules.patch"
- base_path: "source_subfolder"
patch_file: "patches/7.0.0-0005-use-find-package.patch"
"2.0.0":
- base_path: "source_subfolder"
patch_file: "patches/2.0.0-0001-cmake.patch"
- base_path: "source_subfolder"
patch_file: "patches/2.0.0-0002-jemalloc.patch"
- base_path: "source_subfolder"
patch_file: "patches/2.0.0-0003-fix-shared-msvc.patch"
- base_path: "source_subfolder"
patch_file: "patches/1.0.0-0004-mallctl-takes-size_t.patch"
- base_path: "source_subfolder"
patch_file: "patches/2.0.0-0005-gandiva-engine.patch"
- base_path: "source_subfolder"
patch_file: "patches/2.0.0-0006-gandiva-llvm-re2.patch"
- base_path: "source_subfolder"
patch_file: "patches/2.0.0-0007-fix-protoc-cmake.patch"
"1.0.0":
- base_path: "source_subfolder"
patch_file: "patches/1.0.0-0001-cmake.patch"
- base_path: "source_subfolder"
patch_file: "patches/1.0.0-0002-jemalloc.patch"
- base_path: "source_subfolder"
patch_file: "patches/1.0.0-0003-fix-shared-msvc.patch"
- base_path: "source_subfolder"
patch_file: "patches/1.0.0-0004-mallctl-takes-size_t.patch"
Loading

0 comments on commit 3a646b3

Please sign in to comment.