Skip to content

Commit feb8ba7

Browse files
Fixed CI script path
1 parent afb8e72 commit feb8ba7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/build-artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
id: find-executable-files
6060
working-directory: ${{github.workspace}}
6161
run: |
62-
chmod +x ./CIUtils/find-executable.sh
62+
find ./CIUtils/ -name "*.sh" -exec chmod +x {} \;
6363
EXEC_FILES=$(./CIUtils/find-executable.sh "workspace/")
6464
echo "Found executable and dynamic library files: $EXEC_FILES"
6565
echo "exec_files=$EXEC_FILES" >> $GITHUB_OUTPUT

CIUtils/find-executable.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
#!/bin/bash
22

3+
# Get the directory of the current script
4+
script_dir=$(dirname "$0")
5+
36
# Detect the operating system
47
os_type=$(uname)
58

69
# Execute the corresponding script based on the operating system
710
case "$os_type" in
811
Linux)
9-
echo $(./find-elf.sh "$1")
12+
echo $("$script_dir/find-elf.sh" "$1")
1013
;;
1114
Darwin)
12-
echo $(./find-macho.sh "$1")
15+
echo $("$script_dir/find-macho.sh" "$1")
1316
;;
1417
*)
1518
echo "Unsupported OS: $os_type"

0 commit comments

Comments
 (0)