File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,18 @@ jobs:
28
28
- uses : actions/checkout@v1
29
29
with :
30
30
path : swift
31
+ - name : Prepare sccache timestamp
32
+ id : cache_timestamp
33
+ shell : cmake -P {0}
34
+ run : |
35
+ string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
36
+ message("::set-output name=timestamp::${current_date}")
31
37
- uses : actions/cache@v1
32
38
with :
33
39
path : ../build-cache
34
- key : ${{ runner.os }}-sccache-v7-5.3
40
+ key : ${{ runner.os }}-sccache-v10-5.3-${{ steps.cache_timestamp.outputs.timestamp }}
41
+ restore-keys : |
42
+ ${{ runner.os }}-sccache-v10-5.3-
35
43
- name : Build Linux installable archive
36
44
run : |
37
45
./utils/webassembly/ci.sh
@@ -58,10 +66,18 @@ jobs:
58
66
- uses : actions/checkout@v1
59
67
with :
60
68
path : swift
69
+ - name : Prepare sccache timestamp
70
+ id : cache_timestamp
71
+ shell : cmake -P {0}
72
+ run : |
73
+ string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
74
+ message("::set-output name=timestamp::${current_date}")
61
75
- uses : actions/cache@v1
62
76
with :
63
77
path : ../build-cache
64
- key : ${{ runner.os }}-sccache-v7-5.3
78
+ key : ${{ runner.os }}-sccache-v10-5.3-${{ steps.cache_timestamp.outputs.timestamp }}
79
+ restore-keys : |
80
+ ${{ runner.os }}-sccache-v10-5.3-
65
81
- name : Build macOS installable archive
66
82
run : |
67
83
sudo xcode-select --switch /Applications/Xcode_12_beta.app/Contents/Developer/
You can’t perform that action at this time.
0 commit comments