Skip to content

Commit c94e718

Browse files
committed
Address LD_LIBRARY_PATH issue
1 parent 0266e46 commit c94e718

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

apply-configuration/action.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ runs:
1313
update-environment: false
1414
- name: Install dependencies
1515
shell: bash
16-
run: ${{ steps.cs-install-python.outputs.python-path }} -m pip install -r ${GITHUB_ACTION_PATH}/../scripts/configuration/requirements.txt
16+
run: |
17+
install_dir=$(dirname $(dirname "${{ steps.cs-install-python.outputs.python-path }}"))
18+
if [[ -z "$LD_LIBRARY_PATH" ]]; then
19+
export LD_LIBRARY_PATH="$install_dir/lib"
20+
else
21+
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$install_dir/lib"
22+
fi
23+
${{ steps.cs-install-python.outputs.python-path }} -m pip install -r ${GITHUB_ACTION_PATH}/../scripts/configuration/requirements.txt
1724
- name: Process files
1825
shell: bash
1926
run: ${{ steps.cs-install-python.outputs.python-path }} ${GITHUB_ACTION_PATH}/../scripts/configuration/process_coding_standards_config.py

0 commit comments

Comments
 (0)