Skip to content

Commit a798395

Browse files
committed
Try setting CC=musl-gcc
Signed-off-by: Kevin Svetlitski <ksvetlitski@janestreet.com>
1 parent 6a0ad9e commit a798395

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,26 +62,20 @@ jobs:
6262
cd ..
6363
rm -rf musl-zstd
6464
65-
- name: Show disk usage
66-
run: |
67-
# For debugging only!
68-
curl -L 'https://github.com/bootandy/dust/releases/download/v1.2.3/dust-v1.2.3-x86_64-unknown-linux-gnu.tar.gz' | tar -xz --strip-components=1
69-
chmod +x ./dust
70-
sudo ./dust --no-progress /
71-
7265
- name: Use OCaml ${{ matrix.ocaml-version }}
7366
run: |
7467
sudo wget -O /usr/local/bin/opam https://github.com/ocaml/opam/releases/download/2.1.2/opam-2.1.2-x86_64-linux
7568
sudo chmod a+x /usr/local/bin/opam
7669
7770
export OPAMYES=1
7871
export OPAMJOBS=$(($(nproc) + 2))
72+
export CC=musl-gcc
7973
echo "OPAMYES=1" >> "$GITHUB_ENV"
8074
echo "OPAMJOBS=$OPAMJOBS" >> "$GITHUB_ENV"
81-
rm -rf /tmp/* >/dev/null 2>&1 || true
75+
echo "CC=musl-gcc" >> "$GITHUB_ENV"
8276
8377
opam init --bare -yav https://github.com/ocaml/opam-repository.git
84-
opam switch create ${{ matrix.ocaml-version }} --repos ox=git+https://github.com/oxcaml/opam-repository.git,default --packages=ocaml-variants.${{ matrix.ocaml-version }}+options,ocaml-option-musl
78+
opam switch create ${{ matrix.ocaml-version }} --repos ox=git+https://github.com/oxcaml/opam-repository.git,default
8579
8680
opam switch set ${{ matrix.ocaml-version }}
8781

0 commit comments

Comments
 (0)