mirror of
https://github.com/julia-actions/cache.git
synced 2026-02-12 09:26:53 +08:00
* Update action.yml * Add basic test * Add needs * Fix unexpected symbol * Assert isdir * Update CI.yml * Add mktempdir * Write random Project.toml * Switch to assert isempty * Use random.txt * Be more strict in restore-keys * Assert isempty dir * Fix CI? * Restore gonna fail * Fix save? * Pass cache name * Fix typo * Fix bash string subst * Fix typo * Use string * Remove Project.toml * Remove change to action.yml * Fix CI (#3) * Small change * Use DEPOT_PATH * Fix CI? * Pass name better * Changes * Change id * Add a show * Fix CI? * Fix CI? * Fix CI? * Also output cache-hit * Add echo * Fix missing outputs * Fix CI? * Improve log * Improve log * Improve log * Try different actions/cache version * Check for empty * Check for empty * Fix syntax error * Try something else * Propagate value * Temporarily use restore * Update test-save * Simplify * Apply suggestions from code review Co-authored-by: Sascha Mann <git@mail.saschamann.eu> * Add basic test (#2) * Add basic test * Add needs * Fix unexpected symbol * Assert isdir * Update CI.yml * Add mktempdir * Write random Project.toml * Switch to assert isempty * Use random.txt * Be more strict in restore-keys * Assert isempty dir * Fix CI? * Restore gonna fail * Fix save? * Pass cache name * Fix typo * Fix bash string subst * Fix typo * Use string * Remove Project.toml * Remove change to action.yml * Fix CI (#3) * Small change * Use DEPOT_PATH * Fix CI? * Pass name better * Changes * Change id * Add a show * Fix CI? * Fix CI? * Fix CI? * Also output cache-hit * Add echo * Fix missing outputs * Fix CI? * Improve log * Improve log * Improve log * Try different actions/cache version * Check for empty * Check for empty * Fix syntax error * Try something else * Propagate value * Temporarily use restore * Update test-save * Simplify * Apply suggestions from code review Co-authored-by: Sascha Mann <git@mail.saschamann.eu> * Also cache packages and registry * Only cache artifacts * Revert name and description Co-authored-by: Sascha Mann <git@mail.saschamann.eu>
36 lines
1011 B
YAML
36 lines
1011 B
YAML
name: 'Cache Julia Artifacts'
|
|
description: 'Cache Julia artifacts using actions/cache'
|
|
author: 'Sascha Mann'
|
|
|
|
branding:
|
|
icon: 'archive'
|
|
color: 'purple'
|
|
|
|
inputs:
|
|
cache-name:
|
|
description: 'Name used as part of the cache keys'
|
|
default: 'cache-artifacts'
|
|
|
|
outputs:
|
|
cache-hit:
|
|
description: 'A boolean value to indicate an exact match was found for the primary key. Returns \"\" when the key is new. Forwarded from actions/cache'
|
|
value: ${{ steps.hit.outputs.cache-hit }}
|
|
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed
|
|
id: cache
|
|
with:
|
|
path: |
|
|
~/.julia/artifacts
|
|
key: ${{ runner.os }}-test-${{ inputs.cache-name }}-${{ hashFiles('**/Project.toml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-test-${{ inputs.cache-name }}-
|
|
|
|
- id: hit
|
|
run: echo "::set-output name=cache-hit::$(echo $CACHE_HIT)"
|
|
env:
|
|
CACHE_HIT: ${{ steps.cache.outputs.cache-hit }}
|
|
shell: bash
|