Commit Graph

30 Commits

Author SHA1 Message Date
Dilum Aluthge
0413f3b1ae Only run Dependabot once per month, but increase the PR limit (#115) 2024-04-03 11:00:28 -04:00
Curtis Vogt
4491ed7a86 Pass cache-name between save/restore jobs (#103)
* Pass cache-name between save/restore

* Use save job name in cache-name

* Re-order test jobs

* Fix typo in registry warning
2024-01-16 09:40:31 -06:00
Curtis Vogt
b84ca24db8 Avoid corrupting existing cloned Julia registries (#102)
* Reproduce add-julia-registry issue

* Skip registries restore when already present

* Expand ~

* Refactor paths step to use bash array
2024-01-15 19:28:33 -06:00
Curtis Vogt
b3b34e3264 Test cache action against Julia 1.0 and nightly (#101)
* CI test action on Julia 1.0

* Avoid quoting Julia shell string

* Test against Julia nightly
2024-01-15 15:20:46 -06:00
Curtis Vogt
0c5d92d73a Delete cache entries only on the workflow branch (#97)
* Delete cache entries on the workflow branch

* Grant permissions for cache cleanup

* Add delete-old-caches required for testing purposes

* Revise help message

* Faster generate-key

* Use distinct cache-names for matrix/no-matrix jobs

* Remove redundant permissions

* Better fork detection logic
2024-01-15 10:15:36 -06:00
Curtis Vogt
fca1a91340 URL encode any invalid key characters (#93)
* URL encode any invalid key characters

* Test we handle invalid chars

* Job matrices must match

* Empty commit

* Empty commit
2024-01-09 16:50:08 -05:00
Curtis Vogt
207a5a0786 Unique cache-key for job matrix objects (#88)
* Unique cache-key for job matrix objects

* Update workflow to use object in job matrix

* Restore key should always match startswith

* fixup! Unique cache-key for job matrix objects

* Debug no-matrix

* Tests require overriding workflow/job

* Skip generating matrix_key when no matrix is used

* Install jq for self-hosted runners

* fixup! Install jq for self-hosted runners

* Skip install when not needed

* fixup! Skip install when not needed

* fixup! Skip install when not needed

* Improve `cache-name` description

Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com>

* Update  description in README

* Use actions/checkout@v4 in example

* add missing period

---------

Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com>
2024-01-04 20:29:52 -05:00
Curtis Vogt
b430ec2989 Add option for user specified Julia depot (#83)
* Add input user-depot

* Only list restored depot directory size on cache-hit

* Remove unnecessary quoting on inputs/outputs

* Rename input to just depot

* Include the depot path in the key

* Documentation update

* Allow JULIA_DEPOT_PATH to specify default depot

* fixup! Allow JULIA_DEPOT_PATH to specify default depot
2024-01-03 19:19:34 -05:00
Ian Butterworth
67f1f75048 Fixup #71 (#75) 2023-11-27 10:05:33 -05:00
Ian Butterworth
3466649946 Update cache every run. Add /compiled and /logs. Make key sensitive to matrix. (#71)
Co-authored-by: Rik Huijzer <github@huijzer.xyz>
Co-authored-by: Sascha Mann <git@mail.saschamann.eu>
2023-11-25 00:08:21 -05:00
dependabot[bot]
b606b82bd0 Bump actions/checkout from 4.1.0 to 4.1.1 (#70)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8ade135a41...b4ffde65f4)

---
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>
2023-11-02 12:18:25 +01:00
dependabot[bot]
5867e4d730 Bump actions/checkout from 4.0.0 to 4.1.0 (#68)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](3df4ab11eb...8ade135a41)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-26 09:29:52 +02:00
dependabot[bot]
2d9095b561 Bump actions/checkout from 3.5.2 to 4.0.0 (#65)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 4.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8e5e7e5ab8...3df4ab11eb)

---
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>
2023-09-09 12:49:50 +02:00
dependabot[bot]
d006556bca Bump actions/checkout from 3.5.1 to 3.5.2 (#60)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.1 to 3.5.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](83b7061638...8e5e7e5ab8)

---
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>
2023-04-14 12:05:13 +02:00
dependabot[bot]
adbfa18f98 Bump actions/checkout from 3.5.0 to 3.5.1 (#59)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.0 to 3.5.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8f4b7f8486...83b7061638)

---
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>
2023-04-13 13:18:41 +02:00
dependabot[bot]
ed93024b72 Bump actions/checkout from 3.4.0 to 3.5.0 (#58)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](24cb908017...8f4b7f8486)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-24 10:47:28 +01:00
dependabot[bot]
3ea06f8ffc Bump actions/checkout from 3.3.0 to 3.4.0 (#57)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](ac59398561...24cb908017)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 11:05:49 +01:00
Sascha Mann
b695972eeb Add test to check compiled hasn't been cached (#49) 2023-01-13 14:15:12 +01:00
dependabot[bot]
8618676e71 Bump actions/checkout from 3.2.0 to 3.3.0 (#41)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](755da8c3cf...ac59398561)

---
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>
2023-01-06 14:55:53 +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
Sascha Mann
26bda12c02 Remove deprecated command #33 2022-10-14 17:38:48 +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]
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]
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
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
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