Skip to content

Refactor caching mechanism for Aptos and movefmt CLI installations in…#3

Merged
WGB5445 merged 7 commits into
mainfrom
fix-cache
Jul 4, 2025
Merged

Refactor caching mechanism for Aptos and movefmt CLI installations in…#3
WGB5445 merged 7 commits into
mainfrom
fix-cache

Conversation

@WGB5445
Copy link
Copy Markdown
Owner

@WGB5445 WGB5445 commented Jul 4, 2025

… action.yml

  • Updated cache keys to include 'aptos-setup' and 'movefmt-version' for better cache management.
  • Removed the previous cache step for movefmt and integrated its logic into the Aptos caching process.
  • Adjusted conditional checks to ensure proper installation flow based on cache hits.

WGB5445 added 7 commits July 4, 2025 12:49
… action.yml

- Updated cache keys to include 'aptos-setup' and 'movefmt-version' for better cache management.
- Removed the previous cache step for movefmt and integrated its logic into the Aptos caching process.
- Adjusted conditional checks to ensure proper installation flow based on cache hits.
- Changed the default installation directory from $HOME/.aptoscli to ~/.aptoscli for consistency and clarity.
…nvironment variables for better compatibility across systems
…install directory

- Updated installation scripts for both Aptos and movefmt CLIs to consistently handle the install directory, replacing instances of `${{ inputs.install-dir }}` with a variable that resolves to the user's home directory when necessary.
- Improved clarity and maintainability of the code by using a single variable for the install directory across different OS checks.
…configurations

- Changed the default install directory for Aptos CLI from ~/.aptoscli to .aptoscli for better compatibility.
- Refined cache key generation in action.yml to utilize architecture name for enhanced cache management.
- Added macOS x64 to the testing matrix in test.yml to expand testing coverage across platforms.
- Updated the cache key format to include additional parameters such as install directory, username, and repository for improved cache management and specificity.
- This change enhances the caching mechanism by ensuring unique keys based on user-specific configurations.
…README

- Removed the `install-dir` input from action.yml, standardizing the installation path to `$HOME/.aptoscli` for all platforms.
- Updated caching logic to reflect the new installation directory, ensuring consistent behavior across different operating systems.
- Revised README to document the changes in the installation path and clarify the default behavior.
@WGB5445 WGB5445 merged commit c65ea96 into main Jul 4, 2025
30 checks passed
@WGB5445 WGB5445 deleted the fix-cache branch July 4, 2025 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant