|
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 | | - |
66 | 57 | - name: Install musl gcc |
67 | 58 | if: runner.os == 'Linux' |
68 | | - run: | |
69 | | - sudo apt-get install -y --no-install-recommends \ |
70 | | - musl-tools |
| 59 | + run: sudo apt-get install -y --no-install-recommends musl-tools |
71 | 60 |
|
72 | 61 | - name: Set up sccache |
73 | 62 | uses: mozilla-actions/sccache-action@v0.0.4 |
@@ -224,27 +213,13 @@ jobs: |
224 | 213 | chmod +x rewatch/rewatch |
225 | 214 | chmod +x _build/install/default/bin/* |
226 | 215 |
|
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 | 216 | - name: Install dependencies |
237 | 217 | if: runner.os == 'Linux' |
238 | | - run: | |
| 218 | + uses: awalsh128/cache-apt-pkgs-action@v1.4.2 |
| 219 | + with: |
239 | 220 | # 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 |
| 221 | + packages: bubblewrap darcs g++-multilib gcc-multilib mercurial musl-tools rsync |
| 222 | + version: v1 |
248 | 223 |
|
249 | 224 | - name: Restore OPAM tool |
250 | 225 | id: cache-opam-tool |
@@ -395,10 +370,6 @@ jobs: |
395 | 370 | run: node scripts/ciTest.js -mocha -theme -format |
396 | 371 |
|
397 | 372 | # Build the playground compiler on the fastest runner (ubuntu-latest) |
398 | | - - name: Install JSOO |
399 | | - if: matrix.os == 'ubuntu-latest' |
400 | | - run: opam install js_of_ocaml.5.8.1 |
401 | | - |
402 | 373 | - name: Build playground compiler |
403 | 374 | if: matrix.os == 'ubuntu-latest' |
404 | 375 | run: | |
|
0 commit comments