File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,31 @@ jobs:
27
27
- name : Restore dotnet tools
28
28
run : dotnet tool restore
29
29
30
+ # Cache the externals directory based on config.json content
31
+ # This caches the Maven artifacts downloaded by the binderator tool
32
+ # to avoid re-downloading the same artifacts on subsequent runs
33
+ - name : Restore externals cache
34
+ id : cache-externals-restore
35
+ uses : actions/cache/restore@v4
36
+ with :
37
+ path : ./externals
38
+ key : externals-${{ hashFiles('config.json') }}
39
+
30
40
- name : Run dotnet cake
31
41
run : dotnet cake
32
42
continue-on-error : true
33
43
44
+ # Save the externals cache after dotnet cake runs
45
+ # This ensures the cache reflects the original config.json state
46
+ # before any potential modifications by the build process
47
+ - name : Save externals cache
48
+ id : cache-externals-save
49
+ uses : actions/cache/save@v4
50
+ if : steps.cache-externals-restore.outputs.cache-hit != 'true'
51
+ with :
52
+ path : ./externals
53
+ key : externals-${{ hashFiles('config.json') }}
54
+
34
55
- name : Display environment info
35
56
run : |
36
57
echo "=== Environment Summary ==="
You can’t perform that action at this time.
0 commit comments