File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,20 @@ jobs:
49
49
run : |
50
50
echo "Checking permissions for /opt/homebrew/opt..."
51
51
ls -al /opt/homebrew/opt
52
+
52
53
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 |
54
55
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
57
61
done || {
58
- echo "No directories found in /opt/homebrew/opt"
62
+ echo "No valid directories found in /opt/homebrew/opt"
59
63
exit 1
60
64
}
65
+
61
66
62
67
# - name: Display Opt Directories
63
68
# run: cat opt_dirs.txt
@@ -120,4 +125,4 @@ jobs:
120
125
- name : Display release folder
121
126
run : |
122
127
ls -al ./release
123
- working-directory : ${{ github.workspace }}/qt-build
128
+ working-directory : ${{ github.workspace }}/qt-build
You can’t perform that action at this time.
0 commit comments