Skip to content

Commit ecd8076

Browse files
authored
fix: cache $HOME/.ape folder (#42)
1 parent 537ecad commit ecd8076

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,11 @@ steps:
5151
- run: ape test -s
5252
```
5353
54-
**NOTE** This action is still in development
54+
## Caching
55+
56+
This github action caches resources needed to efficiently use Ape.
57+
The following table highlights the cached items:
58+
59+
- Compiler binaries located in `$HOME/.vvm` and `$HOME/.solcx`
60+
- `$github.workspace/.build` - the compiled project
61+
- `$HOME/.ape` to avoid having to re-download dependencies / re-create accounts.

action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,15 @@ runs:
3737
- uses: actions/cache@v4
3838
name: Build cache
3939
with:
40-
path: |
41-
${{ github.workspace }}/.build
40+
path: ${{ github.workspace }}/.build
4241
key: ${{ runner.os }}-build-cache
4342

43+
- uses: actions/cache@v4
44+
name: Ape data cache
45+
with:
46+
path: $HOME/.ape
47+
key: ${{ runner.os }}-apedata-cache
48+
4449
- uses: actions/setup-python@v5
4550
with:
4651
python-version: ${{ inputs.python-version }}

0 commit comments

Comments
 (0)