Skip to content

Commit 55ce5e9

Browse files
committed
Configure LD_LIBRARY_PATH in Bebe containers for custom clang/gcc builds
1 parent f076b6d commit 55ce5e9

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,21 @@ runs:
6464
if [[ "${{ inputs.conan-compiler }}" == "clang" && "${{ runner.os }}" == "Linux" ]]; then
6565
if [[ -d "/opt/clang-${{ inputs.compiler-version }}" ]]; then
6666
echo "tools.build:compiler_executables = {\"c\": \"/opt/clang-${{ inputs.compiler-version }}/bin/clang\", \"cpp\": \"/opt/clang-${{ inputs.compiler-version }}/bin/clang++\"}" >> .conan2/global.conf
67+
echo "LD_LIBRARY_PATH=/opt/clang-${{ inputs.compiler-version }}/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
6768
elif [[ -d "/opt/clang-${{ inputs.compiler-version }}.x" ]]; then
6869
echo "tools.build:compiler_executables = {\"c\": \"/opt/clang-${{ inputs.compiler-version }}.x/bin/clang\", \"cpp\": \"/opt/clang-${{ inputs.compiler-version }}.x/bin/clang++\"}" >> .conan2/global.conf
70+
echo "LD_LIBRARY_PATH=/opt/clang-${{ inputs.compiler-version }}.x/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
6971
else
7072
echo "tools.build:compiler_executables = {\"c\": \"clang-${{ inputs.compiler-version }}\", \"cpp\": \"clang++-${{ inputs.compiler-version }}\"}" >> .conan2/global.conf
7173
fi
74+
elif [[ "${{ inputs.conan-compiler }}" == "gcc" && "${{ runner.os }}" == "Linux" ]]; then
75+
if [[ -d "/opt/gcc-${{ inputs.compiler-version }}" ]]; then
76+
echo "tools.build:compiler_executables = {\"c\": \"/opt/gcc-${{ inputs.compiler-version }}/bin/gcc\", \"cpp\": \"/opt/gcc-${{ inputs.compiler-version }}/bin/g++\"}" >> .conan2/global.conf
77+
echo "LD_LIBRARY_PATH=/opt/gcc-${{ inputs.compiler-version }}/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
78+
elif [[ -d "/opt/gcc-${{ inputs.compiler-version }}.x" ]]; then
79+
echo "tools.build:compiler_executables = {\"c\": \"/opt/gcc-${{ inputs.compiler-version }}.x/bin/gcc\", \"cpp\": \"/opt/gcc-${{ inputs.compiler-version }}.x/bin/g++\"}" >> .conan2/global.conf
80+
echo "LD_LIBRARY_PATH=/opt/gcc-${{ inputs.compiler-version }}.x/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
81+
fi
7282
fi
7383
7484
conan profile show -pr default

0 commit comments

Comments
 (0)