File tree 1 file changed +7
-11
lines changed
1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,14 @@ jobs:
33
33
${{ runner.os }}-
34
34
35
35
- name : Install esy
36
- run : npm install -g esy
36
+ run : npm install -g esy@0.6.7
37
37
38
- - name : Restore esy cache
38
+ - name : Restore esy source cache
39
+ id : esy-cache
39
40
uses : actions/cache@v2
40
41
with :
41
42
path : ~/.esy/source
42
- key : source-${{ hashFiles('**/index.json') }}
43
+ key : source-${{ matrix.os }}-${{ hashFiles('**/index.json') }}
43
44
44
45
- name : Install
45
46
run : esy install
@@ -48,16 +49,13 @@ jobs:
48
49
id : print_esy_cache
49
50
run : node scripts/print-esy-cache.js
50
51
51
- - name : Restore build cache
52
+ - name : Try to restore dependencies cache
52
53
id : deps-cache
53
54
uses : actions/cache@v2
54
55
with :
55
56
path : ${{ steps.print_esy_cache.outputs.esy_cache }}
56
- key : build-${{ matrix.os }}-${{ hashFiles('**/index.json') }}
57
-
58
- - name : Import dependencies
59
- if : steps.cache.outputs.cache-hit == 'true'
60
- run : esy import-build _export/*
57
+ key : deps-${{ matrix.os }}-${{ hashFiles('**/index.json') }}
58
+ restore-keys : deps-${{ matrix.os }}-
61
59
62
60
- name : Build
63
61
run : esy build
79
77
if : ${{ matrix.os == 'ubuntu-latest' }}
80
78
run : |
81
79
esy b dune build
82
- sudo apt-get install tree
83
- tree -L 3 _build
84
80
cd www
85
81
npm install
86
82
npm run build:prod
You can’t perform that action at this time.
0 commit comments