Skip to content

Commit

Permalink
Fixed CI script path
Browse files Browse the repository at this point in the history
  • Loading branch information
FangCunWuChang committed Jul 31, 2024
1 parent afb8e72 commit feb8ba7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
id: find-executable-files
working-directory: ${{github.workspace}}
run: |
chmod +x ./CIUtils/find-executable.sh
find ./CIUtils/ -name "*.sh" -exec chmod +x {} \;
EXEC_FILES=$(./CIUtils/find-executable.sh "workspace/")
echo "Found executable and dynamic library files: $EXEC_FILES"
echo "exec_files=$EXEC_FILES" >> $GITHUB_OUTPUT
Expand Down
7 changes: 5 additions & 2 deletions CIUtils/find-executable.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
#!/bin/bash

# Get the directory of the current script
script_dir=$(dirname "$0")

# Detect the operating system
os_type=$(uname)

# Execute the corresponding script based on the operating system
case "$os_type" in
Linux)
echo $(./find-elf.sh "$1")
echo $("$script_dir/find-elf.sh" "$1")
;;
Darwin)
echo $(./find-macho.sh "$1")
echo $("$script_dir/find-macho.sh" "$1")
;;
*)
echo "Unsupported OS: $os_type"
Expand Down

0 comments on commit feb8ba7

Please sign in to comment.