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 e5544da
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,21 @@ 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
sudo mkdir -p /mnt/build/tmp /mnt/build/cache
sudo chown $(id -u):$(id -g) /mnt/build
- name: Use disk with more space for $TMPDIR
run: echo "TMPDIR=/mnt/build/tmp" >>"$GITHUB_ENV"

- name: Use disk with more space for $XDG_CACHE_HOME
run: echo "XDG_CACHE_HOME=/mnt/build/cache" >>"$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 e5544da

Please sign in to comment.