File tree Expand file tree Collapse file tree 1 file changed +34
-1
lines changed Expand file tree Collapse file tree 1 file changed +34
-1
lines changed Original file line number Diff line number Diff line change 54
54
- name : Checkout
55
55
uses : actions/checkout@v4
56
56
57
+ - name : Restore APT state cache
58
+ if : runner.os == 'Linux'
59
+ uses : actions/cache/restore@v4
60
+ with :
61
+ path : |
62
+ /var/lib/apt/lists
63
+ /var/cache/apt
64
+ key : apt-dependencies-v1
65
+
57
66
- name : Install musl gcc
58
67
if : runner.os == 'Linux'
59
- run : sudo apt-get install -y musl-tools
68
+ run : |
69
+ sudo apt-get install -y --no-install-recommends \
70
+ musl-tools
60
71
61
72
- name : Set up sccache
62
73
uses :
mozilla-actions/[email protected]
@@ -213,6 +224,28 @@ jobs:
213
224
chmod +x rewatch/rewatch
214
225
chmod +x _build/install/default/bin/*
215
226
227
+ - name : Cache APT state
228
+ if : runner.os == 'Linux'
229
+ uses : actions/cache@v4
230
+ with :
231
+ path : |
232
+ /var/lib/apt/lists
233
+ /var/cache/apt
234
+ key : apt-dependencies-v1
235
+
236
+ - name : Install dependencies
237
+ if : runner.os == 'Linux'
238
+ run : |
239
+ # See https://github.com/ocaml/setup-ocaml/blob/92dde8cf/packages/setup-ocaml/src/unix.ts#L13
240
+ sudo apt-get install -y --no-install-recommends \
241
+ bubblewrap \
242
+ darcs \
243
+ g++-multilib \
244
+ gcc-multilib \
245
+ mercurial \
246
+ musl-tools \
247
+ rsync
248
+
216
249
- name : Restore OPAM tool
217
250
id : cache-opam-tool
218
251
uses : actions/cache/restore@v4
You can’t perform that action at this time.
0 commit comments