Skip to content

Commit cb6e3c4

Browse files
committed
Revert CI workarounds since Bebe image is fixed
1 parent 0da2605 commit cb6e3c4

2 files changed

Lines changed: 3 additions & 35 deletions

File tree

.github/actions/setup-conan/action.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff 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

3027
runs:
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

.github/workflows/cmake.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)