File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed
Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,22 @@ concurrency:
1010 group : ${{ github.workflow }}-${{ github.ref }}
1111 cancel-in-progress : true
1212
13+ defaults :
14+ run :
15+ shell : bash
16+
1317env :
1418 CONAN_URL : ${{ secrets.CONAN_URL }}
1519 CONAN_LOGIN_USERNAME_XRPLF : ${{ secrets.CONAN_USERNAME }}
1620 CONAN_PASSWORD_XRPLF : ${{ secrets.CONAN_PASSWORD }}
21+ CONAN_GLOBAL_CONF : |
22+ core.download:parallel={{ os.cpu_count() }}
23+ core.upload:parallel={{ os.cpu_count() }}
24+ core:default_build_profile=libxrpl
25+ core:default_profile=libxrpl
26+ tools.build:jobs={{ (os.cpu_count() * 4/5) | int }}
27+ tools.build:verbosity=verbose
28+ tools.compilation:verbosity=verbose
1729
1830jobs :
1931 build :
@@ -42,13 +54,18 @@ jobs:
4254 steps :
4355 - name : Checkout repository
4456 uses : actions/checkout@v4
57+ - name : Configure Conan
58+ run : |
59+ echo "${CONAN_GLOBAL_CONF}" >> $(conan config home)/global.conf
60+ conan config install profiles/ -tf $(conan config home)/profiles/
61+ conan profile show
4562 - name : Build the recipe
4663 working-directory : recipes/${{ matrix.package.name }}/all
4764 run : |
4865 conan create . \
4966 --version ${{ matrix.package.version }} \
5067 --build=missing \
51- --settings build_type=${{ matrix.build.type }} \
68+ --settings= build_type=${{ matrix.build.type }} \
5269 --update
5370 - name : Upload the recipe
5471 run : |
Original file line number Diff line number Diff line change 1+ {% set os = detect_api.detect_os() %}
2+ {% set arch = detect_api.detect_arch() %}
3+ {% set compiler, version, compiler_exe = detect_api.detect_default_compiler() %}
4+ {% set compiler_version = version %}
5+ {% if os == "Linux" %}
6+ {% set compiler_version = detect_api.default_compiler_version(compiler, version) %}
7+ {% endif %}
8+
9+ [settings]
10+ os={{ os }}
11+ arch={{ arch }}
12+ compiler={{compiler}}
13+ compiler.version={{ compiler_version }}
14+ compiler.cppstd=20
15+ {% if os == "Windows" %}
16+ compiler.runtime=static
17+ {% else %}
18+ compiler.libcxx={{detect_api.detect_libcxx(compiler, version, compiler_exe)}}
19+ {% endif %}
You can’t perform that action at this time.
0 commit comments