Skip to content

Local Runner Cache v1.1.0 - Enhanced & Production Ready

Choose a tag to compare

@ozankasikci ozankasikci released this 31 May 20:28
· 66 commits to main since this release

πŸš€ Local Runner Cache v1.1.0

A significantly enhanced GitHub Action for local caching with persistent storage and comprehensive reliability improvements.

✨ Major New Features

Configurable Cache Directory

  • New input - Specify custom cache storage location
  • Persistent default location - Uses instead of temp directories
  • No more cache loss - Cache survives runner job cleanup and system restarts

Enhanced Reliability

  • 70.55% test coverage with 30 comprehensive test cases
  • 100% input validation coverage - Bulletproof error handling
  • 92.3% function coverage - All critical paths tested
  • Cross-platform compatibility - Tested on Ubuntu, Windows, macOS

πŸ”§ Technical Improvements

  • Professional error handling for all failure scenarios
  • Enhanced logging with cache directory information
  • Robust state management and output generation
  • Improved input validation with clear error messages
  • Better cache key generation and matching logic

πŸ› Key Bug Fixes

  • βœ… Fixed cache loss issue - No more disappearing caches due to temp cleanup
  • βœ… Resolved timeout problems - Action executes reliably without hanging
  • βœ… Improved filesystem operations - Better handling of directory creation and permissions
  • βœ… Enhanced tar command reliability - Better error recovery and reporting

πŸ“– Usage Examples

Basic Usage (Persistent Cache)

- name: Cache dependencies  
  uses: ozankasikci/github-actions-local-cache@v1.1.0
  with:
    path: |
      node_modules
      .cache
    key: ${{ runner.os }}-cache-${{ hashFiles('**/package-lock.json') }}
    restore-keys: |
      ${{ runner.os }}-cache-

Custom Cache Location

- name: Cache Unity Library
  uses: ozankasikci/github-actions-local-cache@v1.1.0
  with:
    path: Library
    key: unity-${{ runner.os }}-${{ hashFiles('**/ProjectSettings/**') }}
    cache-dir: /persistent/unity-cache

🎯 Production Ready

This release represents a production-ready action with:

  • Comprehensive test coverage for all critical functionality
  • Reliable error handling and recovery mechanisms
  • Professional code quality with extensive validation
  • Cross-platform compatibility and testing
  • Clear documentation and usage examples

πŸ”„ Migration from v1.0.x

No breaking changes - existing workflows continue to work unchanged. The action now uses a persistent cache location by default, so your caches will survive between jobs!

πŸ†• What's Next

  • Your Unity builds will now cache properly between runs
  • No more "cache miss on second run" issues
  • Significantly faster build times with persistent caching
  • Better debugging with enhanced logging

Enjoy faster, more reliable builds! πŸš€