Skip to content

Commit

Permalink
ci: fix gems path
Browse files Browse the repository at this point in the history
  • Loading branch information
up9cloud committed Feb 16, 2022
1 parent 008bf1d commit 6821c75
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ jobs:
run: |
brew install coreutils
dir=$(dirname $(grealpath $(which pod)))
if [ "$v" = "`echo -e "$v\n10.999" | sort -V | head -n1`" ]; then
dir=$(grealpath $dir/../gems)
else
if [ `uname -m` = "arm64" ]; then
dir=$(grealpath $dir/../libexec/gems)
else
dir=$(grealpath $dir/../gems)
fi
f=$(grep --include=\*.rb -rnwl $dir -e "unless lib_name.end_with?('.a')")
sed -i '' "s/unless lib_name.end_with?('.a') && lib_name.start_with?('lib')/unless (lib_name.end_with?('.a') || lib_name.end_with?('.dylib')) \&\& File.basename(lib_name).start_with?('lib')/g" $f
Expand Down

0 comments on commit 6821c75

Please sign in to comment.