@@ -60,39 +60,42 @@ jobs:
6060 run : |
6161 echo "Callinglin 1"
6262 mkdir -p output/static output/dynamic
63- echo "mkdir succesful"
63+ echo "mkdir successful"
64+
65+ # List contents of release directory
66+ echo "Contents of release directory:"
67+ ls -l release/
68+
6469 tar -xzf release/${{ env.DYNAMIC_BINARY_NAME }} -C ./output/dynamic
65- echo "tar -xzf sucessful dynamic"
70+ echo "tar -xzf successful dynamic"
6671 tar -xzf release/${{ env.STATIC_BINARY_NAME }} -C ./output/static
67- echo "tar -xzf sucessful static"
68- if [ -f "./output/dynamic/finch-daemon" ]; then
69- echo "finch-daemon exists in output/dynamic"
70- ls -l ./output/dynamic/finch-daemon
71- else
72- echo "finch-daemon does not exist in output/dynamic"
73- ls -l ./output/dynamic
74- fi
75- echo "Output of finch-daemon --version:"
76- ./output/dynamic/finch-daemon --version
77- if command -v grep &> /dev/null; then
78- echo "grep is available"
79- VERSION_OUTPUT=$(./output/dynamic/finch-daemon --version)
80- echo "grep output:"
81- echo "$VERSION_OUTPUT" | grep -oP '\d+\.\d+\.\d+'
82- else
83- echo "grep is not available"
84- fi
72+ echo "tar -xzf successful static"
73+
74+ # List contents of output directories
75+ echo "Contents of output/dynamic:"
76+ ls -l output/dynamic/
77+ echo "Contents of output/static:"
78+ ls -l output/static/
79+
80+ # Check file type and permissions
81+ echo "File info for dynamic binary:"
82+ file output/dynamic/finch-daemon
83+ echo "File info for static binary:"
84+ file output/static/finch-daemon
85+
86+ echo "Output of dynamic finch-daemon --version:"
87+ output/dynamic/finch-daemon --version
88+
89+ echo "Output of static finch-daemon --version:"
90+ output/static/finch-daemon --version
91+
92+ echo "Attempting to grep version from dynamic binary:"
93+ output/dynamic/finch-daemon --version | grep -oP '\d+\.\d+\.\d+'
94+
95+ echo "Attempting to grep version from static binary:"
96+ output/static/finch-daemon --version | grep -oP '\d+\.\d+\.\d+'
8597 DYNAMIC_BINARY_VERSION=$(./output/dynamic/finch-daemon --version | grep -oP '\d+\.\d+\.\d+')
86- echo "Dynamic binary version: $DYNAMIC_BINARY_VERSION"
8798 STATIC_BINARY_VERSION=$(./output/static/finch-daemon --version | grep -oP '\d+\.\d+\.\d+')
88- echo "Static binary version: $STATIC_BINARY_VERSION"
89- export release_tag=${{ env.RELEASE_TAG }}
90- export release_version=${release_tag/v/}
91- echo "Release version: $release_version"
92-
93- echo "CUSTOM_RELEASE_VERSION=${release_version}" >> $GITHUB_ENV
94- echo "CUSTOM_STATIC_BINARY_VERSION=${STATIC_BINARY_VERSION}" >> $GITHUB_ENV
95- echo "CUSTOM_DYNAMIC_BINARY_VERSION=${DYNAMIC_BINARY_VERSION}" >> $GITHUB_ENV
9699 if ["$STATIC_BINARY_VERSION" != "$release_version"] || ["$DYNAMIC_BINARY_VERSION" != "$release_version"]; then
97100 echo "Version mismatch"
98101 exit 1
0 commit comments