File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,9 +23,6 @@ inputs:
2323 generator :
2424 description : ' CMake generator'
2525 default : " Ninja"
26- package-manager-mode :
27- description : ' Conan system package manager mode (install, patch, or None)'
28- default : " install"
2926
3027runs :
3128 using : " composite"
@@ -56,24 +53,12 @@ runs:
5653 echo "tools.cmake.cmaketoolchain:generator = ${{ inputs.generator }}" >> .conan2/global.conf
5754
5855 if [[ "${{ runner.os }}" != "Windows" ]]; then
59- echo "tools.system.package_manager:mode = ${{ inputs.package-manager-mode }}" >> .conan2/global.conf
60- if command -v sudo >/dev/null 2>&1; then
61- echo "tools.system.package_manager:sudo = True" >> .conan2/global.conf
62- else
63- echo "tools.system.package_manager:sudo = False" >> .conan2/global.conf
64- fi
56+ echo "tools.system.package_manager:mode = install" >> .conan2/global.conf
57+ echo "tools.system.package_manager:sudo = True" >> .conan2/global.conf
6558 fi
6659
6760 if [[ "${{ inputs.conan-compiler }}" == "clang" && "${{ runner.os }}" == "Linux" ]]; then
68- CC_NAME="clang-${{ inputs.compiler-version }}"
69- CXX_NAME="clang++-${{ inputs.compiler-version }}"
70- if ! command -v "$CC_NAME" >/dev/null 2>&1; then
71- CC_NAME="clang"
72- fi
73- if ! command -v "$CXX_NAME" >/dev/null 2>&1; then
74- CXX_NAME="clang++"
75- fi
76- echo "tools.build:compiler_executables = {\"c\": \"$CC_NAME\", \"cpp\": \"$CXX_NAME\"}" >> .conan2/global.conf
61+ echo "tools.build:compiler_executables = {\"c\": \"clang-${{ inputs.compiler-version }}\", \"cpp\": \"clang++-${{ inputs.compiler-version }}\"}" >> .conan2/global.conf
7762 fi
7863
7964 conan profile show -pr default
Original file line number Diff line number Diff line change @@ -256,23 +256,6 @@ jobs:
256256 - name : Conan Install
257257 shell : bash
258258 run : |
259- # Temporarily remove the conflicting global GCC library config to allow apt-get to work
260- if [[ -d "/etc/ld.so.conf.d" ]]; then
261- SUDO_CMD=""
262- if command -v sudo >/dev/null 2>&1; then
263- SUDO_CMD="sudo"
264- fi
265- $SUDO_CMD rm -f /etc/ld.so.conf.d/gcc-releases-gcc-*.conf
266- $SUDO_CMD ldconfig
267-
268- # Ensure the container has basic C/C++ runtime objects and headers
269- $SUDO_CMD apt-get update && $SUDO_CMD apt-get install -y build-essential
270-
271- # Install libc++ if needed for Clang
272- if [[ "${{ matrix.settings.compiler.type }}" == "CLANG" && "${{ matrix.settings.lib }}" == "libc++" ]]; then
273- $SUDO_CMD apt-get install -y libc++-${{ matrix.settings.compiler.version }}-dev libc++abi-${{ matrix.settings.compiler.version }}-dev
274- fi
275- fi
276259 conan install . --build missing -pr:b default
277260
278261 - name : Configure CMake (Windows)
You can’t perform that action at this time.
0 commit comments