Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 32 additions & 29 deletions .github/workflows/release-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,39 +60,42 @@
run: |
echo "Callinglin 1"
mkdir -p output/static output/dynamic
echo "mkdir succesful"
echo "mkdir successful"

Check failure on line 64 in .github/workflows/release-automation.yaml

View workflow job for this annotation

GitHub Actions / yamllint-lint

64:1 [trailing-spaces] trailing spaces
# List contents of release directory
echo "Contents of release directory:"
ls -l release/

Check failure on line 68 in .github/workflows/release-automation.yaml

View workflow job for this annotation

GitHub Actions / yamllint-lint

68:1 [trailing-spaces] trailing spaces
tar -xzf release/${{ env.DYNAMIC_BINARY_NAME }} -C ./output/dynamic
echo "tar -xzf sucessful dynamic"
echo "tar -xzf successful dynamic"
tar -xzf release/${{ env.STATIC_BINARY_NAME }} -C ./output/static
echo "tar -xzf sucessful static"
if [ -f "./output/dynamic/finch-daemon" ]; then
echo "finch-daemon exists in output/dynamic"
ls -l ./output/dynamic/finch-daemon
else
echo "finch-daemon does not exist in output/dynamic"
ls -l ./output/dynamic
fi
echo "Output of finch-daemon --version:"
./output/dynamic/finch-daemon --version
if command -v grep &> /dev/null; then
echo "grep is available"
VERSION_OUTPUT=$(./output/dynamic/finch-daemon --version)
echo "grep output:"
echo "$VERSION_OUTPUT" | grep -oP '\d+\.\d+\.\d+'
else
echo "grep is not available"
fi
echo "tar -xzf successful static"

Check failure on line 73 in .github/workflows/release-automation.yaml

View workflow job for this annotation

GitHub Actions / yamllint-lint

73:1 [trailing-spaces] trailing spaces
# List contents of output directories
echo "Contents of output/dynamic:"
ls -l output/dynamic/
echo "Contents of output/static:"
ls -l output/static/

Check failure on line 79 in .github/workflows/release-automation.yaml

View workflow job for this annotation

GitHub Actions / yamllint-lint

79:1 [trailing-spaces] trailing spaces
# Check file type and permissions
echo "File info for dynamic binary:"
file output/dynamic/finch-daemon
echo "File info for static binary:"
file output/static/finch-daemon

Check failure on line 85 in .github/workflows/release-automation.yaml

View workflow job for this annotation

GitHub Actions / yamllint-lint

85:1 [trailing-spaces] trailing spaces
echo "Output of dynamic finch-daemon --version:"
output/dynamic/finch-daemon --version

Check failure on line 88 in .github/workflows/release-automation.yaml

View workflow job for this annotation

GitHub Actions / yamllint-lint

88:1 [trailing-spaces] trailing spaces
echo "Output of static finch-daemon --version:"
output/static/finch-daemon --version

Check failure on line 91 in .github/workflows/release-automation.yaml

View workflow job for this annotation

GitHub Actions / yamllint-lint

91:1 [trailing-spaces] trailing spaces
echo "Attempting to grep version from dynamic binary:"
output/dynamic/finch-daemon --version | grep -oP '\d+\.\d+\.\d+'

Check failure on line 94 in .github/workflows/release-automation.yaml

View workflow job for this annotation

GitHub Actions / yamllint-lint

94:1 [trailing-spaces] trailing spaces
echo "Attempting to grep version from static binary:"
output/static/finch-daemon --version | grep -oP '\d+\.\d+\.\d+'
DYNAMIC_BINARY_VERSION=$(./output/dynamic/finch-daemon --version | grep -oP '\d+\.\d+\.\d+')
echo "Dynamic binary version: $DYNAMIC_BINARY_VERSION"
STATIC_BINARY_VERSION=$(./output/static/finch-daemon --version | grep -oP '\d+\.\d+\.\d+')
echo "Static binary version: $STATIC_BINARY_VERSION"
export release_tag=${{ env.RELEASE_TAG }}
export release_version=${release_tag/v/}
echo "Release version: $release_version"

echo "CUSTOM_RELEASE_VERSION=${release_version}" >> $GITHUB_ENV
echo "CUSTOM_STATIC_BINARY_VERSION=${STATIC_BINARY_VERSION}" >> $GITHUB_ENV
echo "CUSTOM_DYNAMIC_BINARY_VERSION=${DYNAMIC_BINARY_VERSION}" >> $GITHUB_ENV
if ["$STATIC_BINARY_VERSION" != "$release_version"] || ["$DYNAMIC_BINARY_VERSION" != "$release_version"]; then
echo "Version mismatch"
exit 1
Expand Down
Loading