Files
cache/action.yml
2021-12-27 16:58:11 +01:00

36 lines
1.0 KiB
YAML

name: 'Cache Julia Artifacts'
description: 'Cache Julia artifacts using actions/cache'
author: 'Sascha Mann, Rik Huijzer, and contributors'
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