elf-magic 0.5.1

Automatic compile-time ELF exports for Solana programs. One-liner integration, zero config, just works. โœจ
Documentation
#!/bin/bash
set -e

BUMP_TYPE=${1:-patch}

# Validate bump type
case $BUMP_TYPE in
patch | minor | major)
    echo "๐Ÿš€ Rolling $BUMP_TYPE version with odo..."
    ;;
*)
    echo "โŒ Invalid bump type: $BUMP_TYPE"
    echo "Usage: $0 [patch|minor|major]"
    exit 1
    ;;
esac

# Ensure we're in a clean git state
if [[ -n $(git status --porcelain) ]]; then
    echo "โŒ Working directory is not clean. Please commit or stash changes first."
    git status --short
    exit 1
fi

# Show current version
echo "๐Ÿ“Š Current version: $(odo show --format=plain 2>/dev/null || odo show)"

# Roll the version using our own tool! ๐ŸŽฏ
odo roll $BUMP_TYPE

# Get the new version
VERSION=$(odo show | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+' | head -1)
echo "๐Ÿ“ New version: $VERSION"

# Run CI to make sure everything still works
echo "๐Ÿงช Running quick CI checks..."
make ci

echo "๐Ÿ’พ Committing and tagging..."
git add -A
git commit -m "Release v$VERSION"
git tag v$VERSION

echo "๐Ÿ“ค Pushing to GitHub..."
git push origin main v$VERSION

echo "โœ… Release v$VERSION triggered! Check GitHub Actions at:"
echo "   https://github.com/$(git remote get-url origin | sed 's/.*github.com[:/]\(.*\)\.git/\1/')/actions"