Skip to content

Commit

Permalink
fix(ci): use /mnt for temporary files and dune cache
Browse files Browse the repository at this point in the history
Should have more disk space.

Signed-off-by: Edwin Török <[email protected]>
  • Loading branch information
edwintorok committed Feb 2, 2024
1 parent 689420f commit 5c474b4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,20 @@ jobs:
- name: Update Ubuntu repositories
run: sudo apt-get update

- name: Use disk with more space for $TMPDIR and $XDG_CACHE_HOME
run: |
df -h || true
export TMPDIR=/mnt/build/tmp
export XDG_CACHE_HOME=/mnt/build/cache
sudo mkdir /mnt/build
sudo chown $(id -u):$(id -g) /mnt/build
mkdir -p "${TMPDIR}" "${XDG_CACHE_HOME}"
echo "TMPDIR=${TMPDIR}" >>$GITHUB_ENV
echo "XDG_CACHE_HOME=${XDG_CACHE_HOME}" >>$GITHUB_ENV
- name: Print opam environment
run: opam exec -- env

- name: Use ocaml
uses: ocaml/setup-ocaml@v2
with:
Expand Down

0 comments on commit 5c474b4

Please sign in to comment.