Skip to content

Commit 34513b7

Browse files
committed
Print contents of package for debugging
1 parent 80020d7 commit 34513b7

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,26 @@ jobs:
5656
run: |
5757
bash builder/build.sh
5858
59-
- name: Verify binary architecture
59+
- name: Log package architecture
6060
run: |
61-
file "$BUILD_PATH/vendor/bin/ruby"
61+
validate() {
62+
local dir="$1"
63+
if [[ ! -d "$dir" ]]; then
64+
echo "Error: '$dir' is not a directory or does not exist." >&2
65+
return 1
66+
fi
67+
68+
find "$dir" -type f | while read -r filepath; do
69+
filetype=$(file -b "$filepath")
70+
echo "$filepath [$filetype]"
71+
done
72+
}
73+
6274
uname -m
75+
uname -s
76+
77+
validate "$BUILD_PATH/package/vendor/bin"
78+
validate .
6379
6480
# Upload the final tar.gz artifact for each OS/arch
6581
- name: Upload build artifact

0 commit comments

Comments
 (0)