Skip to content

Commit

Permalink
cache conan
Browse files Browse the repository at this point in the history
  • Loading branch information
henryborchers committed Aug 16, 2023
1 parent a3688b8 commit 767bdc2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: actions/cache@v3
id: cache-conan
with:
path: "${{ runner.temp }}/.conan"
path: "ciwheelbuilder"
key: ${{ runner.os }}-compiler-${{ matrix.compiler_version}} ${{ hashFiles('**/conanfile.py') }}
- name: Build wheels
if: contains(matrix.os, 'windows')
Expand Down
20 changes: 10 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ before-all = [
'conan install ./ --build missing',
]
[tool.cibuildwheel.windows.environment]
CONAN_USER_HOME="$TEMP/conan"
CONAN_USER_HOME="{project}/ciwheelbuilder/conan"

[tool.cibuildwheel.macos]
before-all = [
"pip3 install -r requirements/requirements-conan.txt",
'conan profile new $ENVTMPDIR/.conan/profiles/default --detect --force',
'conan profile new {project}/ciwheelbuilder/conan/.conan/profiles/default --detect --force',
'conan config init',
'conan config set general.revisions_enabled=1',
'if [ -z \"$CONAN_COMPILER_VERSION\" ]; then : ; else conan profile update settings.compiler.version=$CONAN_COMPILER_VERSION default; fi',
Expand All @@ -75,18 +75,18 @@ repair-wheel-command = [
]

[tool.cibuildwheel.macos.environment]
ENVTMPDIR="/tmp/ciwheelbuilder/uiucprescon_ocr"
CONAN_USER_HOME="/tmp/ciwheelbuilder/uiucprescon_ocr"
CONAN_DEFAULT_PROFILE_PATH="/tmp/ciwheelbuilder/uiucprescon_ocr/.conan/profiles/default"
CONAN_BUILD_INFO_DIR="/tmp/ciwheelbuilder/uiucprescon_ocr/build/"
ENVTMPDIR="{project}/ciwheelbuilder/uiucprescon_ocr"
CONAN_USER_HOME="{project}/ciwheelbuilder/uiucprescon_ocr"
CONAN_DEFAULT_PROFILE_PATH="{project}/ciwheelbuilder/uiucprescon_ocr/.conan/profiles/default"
CONAN_BUILD_INFO_DIR="{project}/ciwheelbuilder/uiucprescon_ocr/build/"


[tool.cibuildwheel.linux]
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel}"
before-all = [
'cc --version', 'cc -dumpfullversion -dumpversion',
'pip3 install -r requirements/requirements-conan.txt',
'conan profile new /tmp/ciwheelbuilder/uiucprescon_ocr/.conan/profiles/default --detect',
'conan profile new {project}/ciwheelbuilder/uiucprescon_ocr/.conan/profiles/default --detect',
'conan config set general.revisions_enabled=1',
'if [ -z \"$CONAN_COMPILER_LIBCXX\" ]; then : ; else conan profile update settings.compiler.libcxx=$CONAN_COMPILER_LIBCXX default; fi',
'if [ -z \"$CONAN_COMPILER_VERSION\" ]; then : ; else conan profile update settings.compiler.version=$CONAN_COMPILER_VERSION default; fi',
Expand All @@ -95,9 +95,9 @@ before-all = [

]
[tool.cibuildwheel.linux.environment]
CONAN_USER_HOME="/tmp/ciwheelbuilder/uiucprescon_ocr"
CONAN_DEFAULT_PROFILE_PATH="/tmp/ciwheelbuilder/uiucprescon_ocr/.conan/profiles/default"
CONAN_BUILD_INFO_DIR="/tmp/ciwheelbuilder/uiucprescon_ocr/build/"
CONAN_USER_HOME="{project}/ciwheelbuilder/uiucprescon_ocr"
CONAN_DEFAULT_PROFILE_PATH="{project}/ciwheelbuilder/uiucprescon_ocr/.conan/profiles/default"
CONAN_BUILD_INFO_DIR="{project}/ciwheelbuilder/uiucprescon_ocr/build/"
PYTHONFAULTHANDLER="True"
CONAN_COMPILER_LIBCXX="libstdc++11"
#
Expand Down

0 comments on commit 767bdc2

Please sign in to comment.