Commit Graph

52 Commits (3a696372f2ec10535e4c026a4fdae5fcca629e4a)

Author SHA1 Message Date
kalin 3a696372f2
elixir typo - stray parenthesis (#569) 4 years ago
Wojtek Mach 366e5ba022
Update cache key for Elixir (#568) 4 years ago
Jonathan Clem 981fa981ed
Merge pull request #469 from ericmj/patch-1
Also cache _build for Elixir
4 years ago
Pradyun Gedam 4498c5b4d8
Drop the example based on using pip's internals (#519)
pip's documentation explicitly states to not use `import pip`:

> While it is implemented in Python, and so is available from your Python code via
> `import pip`, you must not use pip’s internal APIs in this way.

This example is in direct contradiction with the documentation's guidance and, thus, has
been removed.
4 years ago
Benoit Daloze 1bfe3accb3 Recommend ruby/setup-ruby's bundler-cache: true option
Manually caching gems has many issues:
* Not working if there is no Gemfile.lock but only a Gemfile
* Not having the OS version in the key, which might cause binary incompatibility with system libraries of different ABI version.
* Not taking the Ruby version in account.
* Not taking the Ruby ABI version of development builds into accounts, which cannot be done with a key, but needs the commit hash.
* Using restore-keys would grow the cache over time and have extra gems in the cache.
* Those reasons are summarized in https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby#caching-bundle-install-manually
4 years ago
Konrad Pabjan 354332455a
Merge pull request #434 from DanielHabenicht/patch-1
Update examples.md for NPM
4 years ago
Odín del Río e64ab303d1
Improved gradle cache key calculation example 4 years ago
Chris Patterson 72f66cfa6d
Added a cache example when using matrix 4 years ago
Eric Meadows-Jönsson 62a4d75442
Also cache _build for Elixir 4 years ago
Guillermo Eijo 4557c6a937 Add example for python pipenv 4 years ago
DanielHabenicht 19530ba135
Update examples.md 4 years ago
Shafiq Jetha 8b407f7777
Grammar fix (#405) 4 years ago
Noam Tamim 59a8d125e7
Fix indentation in last pip example 4 years ago
Aiqiao Yan 4978dc4f31
Merge pull request #358 from gaerfield/patch-1
fixes actions/cache#244
4 years ago
Aiqiao Yan 5c77066753
Merge pull request #359 from JLHwung/patch-1
add Yarn 2 cache example
4 years ago
Aiqiao Yan 4aa79d91d3 Rename master to main 5 years ago
Huáng Jùnliàng 5474af707f
add Yarn 2 cache example 5 years ago
gaerfield 591646a21e
fixes actions/cache#244 5 years ago
Marcono1234 eed9cfe64d
Add name for Maven example (#341) 5 years ago
Josh Gross 984ce638f0
Add note about using setup-node before cache (#351) 5 years ago
Aiqiao Yan e6c708b5ce React to feedback 5 years ago
Aiqiao Yan 581312be20 Update readme and examples to use v2 5 years ago
Shigeki Karita ddc4681e8d
Add D example. (#303) 5 years ago
Hugo van Kemenade ccf9619480
Add Python example using 'pip cache dir' to get cache location (#285)
* Fix existing example

* Add Python example using 'pip cache dir' to get cache location

* Let users decide how they install pip 20.1+
5 years ago
Josh Gross f60097cd16
Fix Lerna Example (#242)
* Fix lerna example

* Fix yaml spacing
5 years ago
Ethan Dennis eb78578266
Cache multiple paths and add glob pattern support (#212)
* Allow for multiple line-delimited paths to cache

* Add initial minimatch support

* Use @actions/glob for pattern matching

* Cache multiple entries using --files-from tar input

remove known failing test

Quote tar paths

Add salt to test cache

Try reading input files from manifest

bump salt

Run test on macos

more testing

Run caching tests on 3 platforms

Run tests on self-hosted

Apparently cant reference hosted runners by name

Bump salt

wait for some time after save

more timing out

smarter waiting

Cache in tmp dir that won't be deleted

Use child_process instead of actions/exec

Revert tempDir hack

bump salt

more logging

More console logging

Use filepath to with cacheHttpClient

Test cache restoration

Revert temp dir hack

debug logging

clean up cache.yml testing

Bump salt

change debug output

build actions

* unit test coverage for caching multiple dirs

* Ensure there's a locateable test folder at homedir

* Clean up code

* Version cache with all inputs

* Unit test getCacheVersion

* Include keys in getCacheEntry request

* Clean import orders

* Use fs promises in actionUtils tests

* Update import order for to fix linter errors

* Fix remaining linter error

* Remove platform-specific test code

* Add lerna example for caching multiple dirs

* Lerna example updated to v2

Co-Authored-By: Josh Gross <joshmgross@github.com>

Co-authored-by: Josh Gross <joshmgross@github.com>
5 years ago
Dylan Musil 22d71e33ad
Update Node Windows example to find the npm cache (#223) 5 years ago
Jeremy Loy af8651e0c5
Include Kotlinscript Gradle files (#216)
Tested this with my own repo which uses a mix of `build.gradle` and `build.gradle.kts` files and this glob seems to be working correctly.

As an aside, please checkout #215 as it would make the process of verifying these globs easier!
5 years ago
Sacha Ayoun 826785142a
Adding examples for OCaml/esy (#199)
* Adding examples for esy as a workflow for OCaml files

* track v1 instead of v1.1.2

Co-Authored-By: Josh Gross <joshmgross@github.com>

* add link in the readme for ocaml-esy

* ocaml -> ocaml/reason

* link in readme says ocaml/reason

Co-authored-by: Josh Gross <joshmgross@github.com>
5 years ago
Kipras Melnikovas e8230b28a9
Use different IDs for 1) getting the directory of yarn cache 2) the cache itself (#178)
* Use different IDs for 1) getting the directory of yarn cache 2) the cache itself

Using the current example + https://github.com/actions/cache#skipping-steps-based-on-cache-hit,

I came to a wrong conclusion that I could skip a step
if the `cache-hit` was `true` -
the ID I used was from the wrong step -
the `get yarn cache directory` step,
instead of the `get yarn cache itself` step.

I've updated the example in hopes that it'll be clearer for others aswell!

Signed-off-by: Kipras Melnikovas <kipras@kipras.org>

* Explain which ID to use for `cache-hit` in yarn's example

Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
5 years ago
Florian Kostenzer e43776276f
Add Swift Package Manager (SPM) example (#159)
* Add Swift - SPM to examples

* Add link SPM example link to readme

* remove extra newline

* remove another extra newline
5 years ago
Shinya Uryu b6d538e2aa Add renv examples (#151)
* Add renv examples

* Add link in main readme.md
5 years ago
Mike Coutermarsh 6c11532937 Update Ruby docs. "Gem" -> "Bundler" (#150)
* Use "Bundler" which is the package manager

"Gem" isn't wrong, but not typically what a Ruby developer would think of.

* Update links

* Update links
5 years ago
Daniel Shuy c33bff8d72 Add Scala - SBT example (#134)
* Add Scala - SBT example

* Add Scala - SBT example to README
5 years ago
Flavio Corpa d1991bb4c5 Add Haskell - Cabal example (#148)
* Add Haskell - Cabal example

* Add link in main readme.md
5 years ago
Nogic decbafc350
Update examples.md
Co-Authored-By: Chris Patterson <chrispat@github.com>
5 years ago
Nogic 0188dffc5a
Revert original C# Example
* Treat "Use Personal Cache Folder" way as another C# example
* Describe the situation in which another example should be used
5 years ago
Nogic 002d3a77f4
Use Personal Cache Folder in C# Example
Ref: #115
5 years ago
Evan Cloutier 3d01b4eb53 Update Ruby example in documentation to specify bundler path (#113)
* Update Ruby example to specify bundler path

* Fix spacing
5 years ago
Josh Gross 7e7aef2963
Add pip examples (#86) 5 years ago
Josh Gross 50a2fdee6f
Update yarn cache example (#70)
* Update yarn cache example

* Update examples.md

Co-Authored-By: Eric Taylor <erictaylor89@gmail.com>
5 years ago
Josh Gross bc821d0c12
Remove recommendation to cache node_modules (#69)
* Update npm caching examples

* Fix output name

* Remove extra details tag
5 years ago
Kai Neuwerth ecf6eea708 Add PHP Composer example (#32) 5 years ago
Hugo van Kemenade 5f4d4d4555 Alphabetise examples (#52) 5 years ago
Koen Punt 5d3ad75a2b Update example formatting (#57)
* adjust formatting of Carthage example

* enable syntax highlighting for Cargo example
5 years ago
Josh Gross f66a56e59e
Bump version to v1 (#51) 5 years ago
Linda_pp 57f889e86e Add cargo example for Rust project (#8)
* Add cargo example

* Add hash of Cargo.lock to keys of caches

* Move Rust example to examples.md
5 years ago
Ishizaka Tomoya 8c4c641fa0 Add Elixir Mix example (#42)
* Add Elixir Mix example

* Fix typo
5 years ago
CrazyMax 87c0185d27 Add Go modules example (#18)
* Add Go modules example

* Fix TOC
5 years ago
Zach Renner 287ee0671b Add trailing dash to Maven fallback key (#19) 5 years ago