File tree Expand file tree Collapse file tree
.github/actions/setup-conan Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments