Skip to content

Commit f10e663

Browse files
Update build_qt.yml
Signed-off-by: Cédrik Fuoco <[email protected]>
1 parent f64adb0 commit f10e663

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/build_qt.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,20 @@ jobs:
4949
run: |
5050
echo "Checking permissions for /opt/homebrew/opt..."
5151
ls -al /opt/homebrew/opt
52+
5253
echo "Running find command..."
53-
find "/opt/homebrew/opt" -mindepth 1 -maxdepth 1 -type d |
54+
find "/opt/homebrew/opt" -mindepth 1 -maxdepth 1 -type l -o -type d |
5455
while read dir; do
55-
echo "Processing directory: $dir"
56-
echo "-I $dir/include -L $dir/lib"
56+
real_path=$(readlink -f "$dir")
57+
if [ -d "$real_path" ]; then
58+
echo "Processing directory: $real_path"
59+
echo "-I $real_path/include -L $real_path/lib"
60+
fi
5761
done || {
58-
echo "No directories found in /opt/homebrew/opt"
62+
echo "No valid directories found in /opt/homebrew/opt"
5963
exit 1
6064
}
65+
6166
6267
# - name: Display Opt Directories
6368
# run: cat opt_dirs.txt
@@ -120,4 +125,4 @@ jobs:
120125
- name: Display release folder
121126
run: |
122127
ls -al ./release
123-
working-directory: ${{ github.workspace }}/qt-build
128+
working-directory: ${{ github.workspace }}/qt-build

0 commit comments

Comments
 (0)