File tree 4 files changed +28
-1
lines changed
4 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,19 @@ executors:
61
61
62
62
# Reusable test commands (and initializer for clang 6)
63
63
commands :
64
+ dependency_restore :
65
+ steps :
66
+ - restore_cache :
67
+ keys :
68
+ - cmake-cache-{{ checksum "dependencies/CMakeLists.txt" }}
69
+
70
+ dependency_cache :
71
+ steps :
72
+ - save_cache :
73
+ key : cmake-cache-{{ checksum "dependencies/CMakeLists.txt" }}
74
+ paths :
75
+ - dependencies/.cache
76
+
64
77
install_cmake :
65
78
steps :
66
79
- run : apt-get update -qq
@@ -74,7 +87,9 @@ commands:
74
87
cmake_build_cache :
75
88
steps :
76
89
- cmake_prep
90
+ - dependency_restore
77
91
- run : cmake $CMAKE_FLAGS -DCMAKE_INSTALL_PREFIX:PATH=destination -B build .
92
+ - dependency_cache # dependencies are produced in the configure step
78
93
79
94
cmake_build :
80
95
steps :
Original file line number Diff line number Diff line change 10
10
dep_cache :
11
11
folder : $HOME/.dep_cache
12
12
reupload_on_changes : false
13
- fingerprint_script : cmake -E sha512sum dependencies/CMakeLists.txt
13
+ fingerprint_script : cat dependencies/CMakeLists.txt
14
14
setup_script :
15
15
- pkg update -f
16
16
- pkg install bash
Original file line number Diff line number Diff line change 26
26
path : |
27
27
C:\ProgramData\scoop
28
28
key : scoop32 # static key: should be good forever
29
+
30
+ - uses : actions/cache@v2
31
+ with :
32
+ path : dependencies/.cache
33
+ key : ${{ hashFiles('dependencies/CMakeLists.txt') }}
34
+
29
35
- name : Setup Windows # This should almost never run if the cache works.
30
36
if : steps.cache.outputs.cache-hit != 'true'
31
37
shell : powershell
Original file line number Diff line number Diff line change 26
26
path : |
27
27
C:\ProgramData\scoop
28
28
key : scoop64 # static key: should be good forever
29
+
30
+ - uses : actions/cache@v2
31
+ with :
32
+ path : dependencies/.cache
33
+ key : ${{ hashFiles('dependencies/CMakeLists.txt') }}
34
+
29
35
- name : Setup Windows # This should almost never run if the cache works.
30
36
if : steps.cache.outputs.cache-hit != 'true'
31
37
shell : powershell
You can’t perform that action at this time.
0 commit comments