Skip to content

Commit

Permalink
ci: trim dune cache
Browse files Browse the repository at this point in the history
We should eventually separate the opam dependency install into its own job
that uploads an artifact/cache that other jobs can reuse (and that should have a bigger dune cache),
however for now just trim the size of the cache.

The default is 5GiB, which results in ~1.4GiB compressed, which would hit the 10GiB cache size limit in GitHub way too often.
We may need to tweak this value in the future.

Signed-off-by: Edwin Török <[email protected]>
  • Loading branch information
edwintorok committed Apr 26, 2024
1 parent 3907e21 commit 15391c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/generate-and-build-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
name: SDK_Source_PowerShell
path: _build/install/default/xapi/sdk/powershell/*

- name: Trim dune cache
run: opam exec -- dune cache trim --size=2GiB

build-c-sdk:
name: Build C SDK
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ jobs:
- name: Check disk space
run: df -h || true

- name: Trim dune cache
run: opam exec -- dune cache trim --size=2GiB

0 comments on commit 15391c9

Please sign in to comment.