mirror of
https://github.com/julia-actions/cache.git
synced 2026-02-12 09:26:53 +08:00
35 lines
958 B
YAML
35 lines
958 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. Forwarded from actions/cache'
|
|
|
|
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 }}-
|
|
${{ runner.os }}-test-
|
|
${{ runner.os }}-
|
|
|
|
- run: echo "::set-output name=cache-hit::$CACHE_HIT"
|
|
env:
|
|
CACHE_HIT: ${{ steps.cache.outputs.cache-hit }}
|
|
shell: bash
|