Compare commits

..

28 Commits
v1.0 ... v1.1

Author SHA1 Message Date
dependabot[bot]
a96f53eeda Bump actions/cache from 3.2.1 to 3.2.2 (#39)
Bumps [actions/cache](https://github.com/actions/cache) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](c1a5de879e...4723a57e26)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-28 08:52:36 +01:00
dependabot[bot]
bb2ad8a6dc Bump actions/checkout from 3.1.0 to 3.2.0 (#35)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](93ea575cb5...755da8c3cf)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-23 16:24:46 +01:00
dependabot[bot]
b45946153f Bump actions/cache from 3.0.11 to 3.2.1 (#37)
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.11 to 3.2.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](9b0c1fce7a...c1a5de879e)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-23 02:21:40 -05:00
Sascha Mann
26bda12c02 Remove deprecated command #33 2022-10-14 17:38:48 +02:00
Sascha Mann
08f6ca9894 Remove deprecated set-output command (#32)
* Remove deprecated set-output command

See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ & https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter

* Update action.yml

Co-authored-by: Rik Huijzer <t.h.huijzer@rug.nl>

Co-authored-by: Rik Huijzer <t.h.huijzer@rug.nl>
2022-10-14 16:02:53 +02:00
dependabot[bot]
d696810071 Bump actions/cache from 3.0.10 to 3.0.11 (#31)
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.10 to 3.0.11.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](56461b9eb0...9b0c1fce7a)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-14 10:55:36 +02:00
dependabot[bot]
643194b98c Bump actions/checkout from 3.0.2 to 3.1.0 (#30)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.2 to 3.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](2541b1294d...93ea575cb5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-05 18:13:54 +02:00
dependabot[bot]
c314effe59 Bump actions/cache from 3.0.9 to 3.0.10 (#29)
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.9 to 3.0.10.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](ac8075791e...56461b9eb0)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-04 09:39:46 +02:00
dependabot[bot]
c38652fe18 Bump actions/cache from 3.0.8 to 3.0.9 (#28)
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.8 to 3.0.9.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](fd5de65bc8...ac8075791e)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-30 14:14:34 +02:00
dependabot[bot]
ccbc2ac68e Bump actions/cache from 3.0.7 to 3.0.8 (#23)
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.7 to 3.0.8.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](a7c34adf76...fd5de65bc8)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-22 10:57:03 +02:00
dependabot[bot]
936559d9c8 Bump actions/cache from 3.0.5 to 3.0.7 (#22)
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.5 to 3.0.7.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](0865c47f36...a7c34adf76)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-12 10:06:41 +02:00
dependabot[bot]
c2e869b485 Bump actions/cache from 3.0.3 to 3.0.5 (#20)
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.3 to 3.0.5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](30f413bfed...0865c47f36)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-13 13:21:17 +02:00
dependabot[bot]
1835692219 Bump actions/cache from 3.0.1 to 3.0.3 (#18)
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.1 to 3.0.3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](136d96b4ae...30f413bfed)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-31 13:09:46 +02:00
dependabot[bot]
24702b2b39 Bump actions/checkout from 3.0.1 to 3.0.2 (#17)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](dcd71f6466...2541b1294d)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-22 12:37:44 +02:00
dependabot[bot]
8441b1201b Bump actions/checkout from 3.0.0 to 3.0.1 (#16)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](a12a3943b4...dcd71f6466)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-15 10:37:56 +02:00
dependabot[bot]
8684ae14b7 Bump actions/cache from 3.0.0 to 3.0.1 (#14)
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](4b0cf6cc46...136d96b4ae)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-31 12:24:56 +02:00
dependabot[bot]
85cc05cd46 Bump actions/cache from 2.1.7 to 3 (#13)
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.7 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](937d244753...4b0cf6cc46)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-22 12:49:14 +01:00
dependabot[bot]
6ee77ae122 Bump actions/checkout from 2.4.0 to 3 (#12)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.4.0 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](ec3a7ce113...a12a3943b4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-03 15:22:10 +01:00
Thibaut Lienart
2f4c647fce Fix grammar in README (#9) 2022-02-08 16:11:47 +01:00
Rik Huijzer
745127cf80 Update README (#6)
* Update README

* Make description a one-liner
2021-12-28 16:31:40 +01:00
Sascha Mann
d5841feac0 Move dependabot.yml to the right place 2021-12-28 16:28:07 +01:00
Sascha Mann
41e67bac8f Activate Dependabot for actions (#8) 2021-12-28 16:27:04 +01:00
Rik Huijzer
d2b01b0f17 Also test packages dir (#5)
* Also test packages dir

* Fix passing of newlines into path
2021-12-28 16:26:12 +01:00
Rik Huijzer
905462d72f Extend cache action (#4)
* Extend cache action

* Also test on Windows and macOS

* Fix a problem with setting output on Windows

* Use echo after set-output

* Generate key only once

* Fix non-matching name (should fail but doesn't weirdly)

* Update action.yml

Co-authored-by: Sascha Mann <git@mail.saschamann.eu>

* Update action.yml

Co-authored-by: Sascha Mann <git@mail.saschamann.eu>

Co-authored-by: Sascha Mann <git@mail.saschamann.eu>
2021-12-27 21:52:42 +01:00
Sascha Mann
8e86b8dd2a Update README.md 2021-12-27 16:59:48 +01:00
Sascha Mann
20058080ea Update README.md 2021-12-27 16:59:24 +01:00
Sascha Mann
ce20795e57 Update authors (#3) 2021-12-27 16:58:11 +01:00
Rik Huijzer
1dbed0efdd Add basic test (#1)
* 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>
2021-12-27 16:54:12 +01:00
4 changed files with 164 additions and 45 deletions

9
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,9 @@
version: 2
updates:
# Keep dependencies for GitHub Actions up-to-date
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'

79
.github/workflows/CI.yml vendored Normal file
View File

@@ -0,0 +1,79 @@
name: CI
on:
push:
branches:
- main
paths:
- 'action.yml'
- '.github/**'
pull_request:
paths:
- 'action.yml'
- '.github/**'
jobs:
generate-key:
runs-on: ubuntu-latest
outputs:
cache-name: ${{ steps.name.outputs.cache-name }}
steps:
- name: Generate random file
shell: 'julia --color=yes {0}'
run: 'write("random.txt", string(rand(10)))'
- name: Set cache-name as output
id: name
run: echo "cache-name=${{ hashFiles('random.txt') }}" >> $GITHUB_OUTPUT
test-save:
needs: generate-key
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
- name: Save cache
id: cache
uses: ./
with:
cache-name: ${{ needs.generate-key.outputs.cache-name }}
- name: Check no artifacts dir
shell: 'julia --color=yes {0}'
run: |
dir = joinpath(first(DEPOT_PATH), "artifacts")
@assert !isdir(dir)
- name: Install a small binary
shell: 'julia --color=yes {0}'
run: 'using Pkg; Pkg.add("pandoc_jll")'
test-restore:
needs: [generate-key, test-save]
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
- name: Restore cache
id: cache
uses: ./
with:
cache-name: ${{ needs.generate-key.outputs.cache-name }}
- name: Test cache-hit output
shell: 'julia --color=yes {0}'
run: |
@show ENV["cache-hit"]
@assert ENV["cache-hit"] == "true"
env:
cache-hit: ${{ steps.cache.outputs.cache-hit }}
- name: Check non-empty artifacts and packages dir
shell: 'julia --color=yes {0}'
run: |
artifacts_dir = joinpath(first(DEPOT_PATH), "artifacts")
@assert !isempty(readdir(artifacts_dir))
packages_dir = joinpath(first(DEPOT_PATH), "packages")
@assert !isempty(readdir(packages_dir))

View File

@@ -1,63 +1,75 @@
# cache-artifacts
A shortcut action to cache Julia artifacts.
# julia-actions/cache Action
Using this action is equivalent to including the following step in your workflows:
```yaml
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
```
A shortcut action to cache Julia artifacts, packages and (optionally) registries to reduce GitHub Actions running time.
## Usage
### Inputs
An example workflow that uses this action might look like this:
```yaml
- uses: julia-actions/cache-artifacts@v1
with:
# The cache name is used as part of the cache key.
# It is equivalent to the cache-name environment variable in the snippet above.
#
# Default: cache-artifacts
cache-name: ''
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
```
By default, this caches the files in `~/.julia/artifacts/` and `~/.julia/packages/`.
To also cache `~/.julia/registries/`, use
```yaml
- uses: julia-actions/cache@v1
with:
cache-registries: "true"
```
Note that caching the registries may actually slow down the workflow running time on Windows runners.
That is why caching the registries is disabled by default.
### Inputs
- `cache-name` - Name used as part of the cache keys
- `cache-artifacts` - Whether to cache `~/.julia/artifacts/`. Enabled by default.
- `cache-packages` - Whether to cache `~/.julia/packages/`. Enabled by default.
- `cache-registries` - Whether to cache `~/.julia/registries/`. Disabled by default.
### Outputs
```yaml
outputs:
# A boolean value to indicate an exact match was found for the primary key.
# Forwarded from actions/cache, check its documentation for more info.
cache-hit: ''
```
- `cache-hit` - A boolean value to indicate an exact match was found for the primary key. Returns \"\" when the key is new. Forwarded from actions/cache.
## How it works
This action is a wrapper around <https://github.com/actions/cache>.
In summary, this action stores the files in the aforementioned paths in one compressed file when running for the first time.
This cached file is then restored upon the second run.
The benefit of this is that downloading one big file is quicker than downloading many different files from many different locations.
## Third Party Notice
This action is built around [`actions/cache`](https://github.com/actions/cache/) and includes parts of that action. `actions/cache` has been released under the following licence:
> The MIT License (MIT)
>
>
> Copyright (c) 2018 GitHub, Inc. and contributors
>
>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
>
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
>
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE

View File

@@ -1,6 +1,6 @@
name: 'Cache Julia Artifacts'
description: 'Cache Julia artifacts using actions/cache'
author: 'Sascha Mann'
name: 'Cache Julia artifacts, packages and registry'
description: 'Cache Julia using actions/cache'
author: 'Sascha Mann, Rik Huijzer, and contributors'
branding:
icon: 'archive'
@@ -9,26 +9,45 @@ branding:
inputs:
cache-name:
description: 'Name used as part of the cache keys'
default: 'cache-artifacts'
default: 'julia-cache'
cache-artifacts:
description: 'Whether to cache ~/.julia/artifacts/'
default: 'true'
cache-packages:
description: 'Whether to cache ~/.julia/packages/'
default: 'true'
cache-registries:
description: 'Whether to cache ~/.julia/registries/'
default: 'false'
outputs:
cache-hit:
description: 'A boolean value to indicate an exact match was found for the primary key. Forwarded from actions/cache'
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: paths
run: |
[ "${{ inputs.cache-artifacts }}" = "true" ] && A_PATH="~/.julia/artifacts"
echo "ARTIFACTS_PATH=$A_PATH" >> $GITHUB_ENV
[ "${{ inputs.cache-packages }}" = "true" ] && P_PATH="~/.julia/packages"
echo "PACKAGES_PATH=$P_PATH" >> $GITHUB_ENV
[ "${{ inputs.cache-registries }}" = "true" ] && R_PATH="~/.julia/registries"
echo "REGISTRIES_PATH=$R_PATH" >> $GITHUB_ENV
shell: bash
- uses: actions/cache@4723a57e26efda3a62cbde1812113b730952852d
id: cache
with:
path: ~/.julia/artifacts
path: "${{ format('{0}\n{1}\n{2}', env.ARTIFACTS_PATH, env.PACKAGES_PATH, env.REGISTRIES_PATH) }}"
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"
- id: hit
run: echo "cache-hit=$CACHE_HIT" >> $GITHUB_OUTPUT
env:
CACHE_HIT: ${{ steps.cache.outputs.cache-hit }}
shell: bash