Skip to content

Commit 7b08229

Browse files
committed
better profile
1 parent d73339b commit 7b08229

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/code_testing.yml

+15-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,21 @@ jobs:
5252
- name: Configure conan
5353
run: |
5454
pip3 install conan==2.3.0
55-
conan profile detect
55+
56+
# conan profile update is deprecated (https://github.com/conan-io/conan/issues/13205)
57+
# and they don't want you to use detect because it is unstable
58+
59+
conan profile detect # Force creation of conan directory structure, will be overwritten
60+
61+
echo '{% set compiler, version = detect_api.detect_compiler() %}' > ~/.conan2/profiles/default
62+
echo '[settings]' >> ~/.conan2/profiles/default
63+
echo 'os={{ detect_api.detect_os() }}' >> ~/.conan2/profiles/default
64+
echo 'arch={{ detect_api.detect_arch() }}' >> ~/.conan2/profiles/default
65+
echo 'build_type=Release' >> ~/.conan2/profiles/default
66+
echo 'compiler={{ compiler }}' >> ~/.conan2/profiles/default
67+
echo 'compiler.version={{ detect_api.default_compiler_version(compiler, version) }}' >> ~/.conan2/profiles/default
68+
echo 'compiler.libcxx=libstdc++11' >> ~/.conan2/profiles/default
69+
5670
conan remote add -f dice-group https://conan.dice-research.org/artifactory/api/conan/tentris
5771
5872
- name: Cache conan data

0 commit comments

Comments
 (0)