Skip to content

Commit 911a9e5

Browse files
committed
ci: GitHub Action uses same conan profiles as cibuildwheel
1 parent c27b776 commit 911a9e5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/tox_matrix.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ jobs:
7777
CONAN_USER_HOME: "${{steps.conan-path-script.outputs.result}}"
7878
if: "!contains(matrix.os, 'windows') && steps.cache-conan.outputs.cache-hit != 'true'"
7979
run: |
80+
mkdir -p "$CONAN_USER_HOME/.conan2/profiles"
81+
if [[ "$(uname)" == "Darwin" ]]; then
82+
cp ci/cibuildwheel/conan_profiles/Macos/mac_host_profile.ini "$CONAN_USER_HOME/.conan2/profiles/default"
83+
else
84+
cp ci/cibuildwheel/conan_profiles/Linux/linux_build_profile.ini "$CONAN_USER_HOME/.conan2/profiles/default"
85+
fi
8086
uv run --only-group conan --isolated conan profile detect --exist-ok
8187
uv run --only-group conan --isolated conan install . --build missing -pr:b=default
8288
- uses: actions/github-script@v7
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% set compiler, version, compiler_exe = detect_api.detect_default_compiler() %}
2+
{% set os_version = platform.mac_ver()[0].split('.') %}
23
[settings]
34
arch={{ detect_api.detect_arch() }}
45
build_type=Release
@@ -7,4 +8,4 @@ compiler.cppstd=17
78
compiler.libcxx=libc++
89
compiler.version={{version.major}}.{{version.minor}}
910
os={{ detect_api.detect_os() }}
10-
os.version={{ os.getenv("MACOSX_DEPLOYMENT_TARGET") }}
11+
os.version={{ os.getenv("MACOSX_DEPLOYMENT_TARGET", os_version[0] + "." + os_version[1] ) }}

0 commit comments

Comments
 (0)