Skip to content

Commit 727476a

Browse files
committed
linux system dependencies
1 parent 7d109b3 commit 727476a

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,20 @@ jobs:
5454
- name: Checkout
5555
uses: actions/checkout@v4
5656

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+
5766
- name: Install musl gcc
5867
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
6071
6172
- name: Set up sccache
6273
uses: mozilla-actions/[email protected]
@@ -213,6 +224,28 @@ jobs:
213224
chmod +x rewatch/rewatch
214225
chmod +x _build/install/default/bin/*
215226
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+
216249
- name: Restore OPAM tool
217250
id: cache-opam-tool
218251
uses: actions/cache/restore@v4

0 commit comments

Comments
 (0)