Skip to content

Commit

Permalink
Try caching downloaded system packages
Browse files Browse the repository at this point in the history
  • Loading branch information
yawaramin committed Jan 14, 2025
1 parent b0798bd commit b25ee69
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
ocaml-compiler: [5, 4]
os:
- ubuntu-latest
- macos-latest
- windows-latest
ocaml-compiler:
- 4
- 5
runs-on: ${{ matrix.os }}
steps:
- name: Checkout tree
Expand All @@ -23,8 +28,10 @@ jobs:
- name: Restore cache
uses: actions/cache@v4
with:
path: _opam
key: v3.10.0-${{ matrix.ocaml-compiler }}-${{ matrix.os }}-${{ hashFiles('dune-project') }}
key: b0798bd-${{ matrix.ocaml-compiler }}-${{ matrix.os }}-${{ hashFiles('dune-project') }}
path: |
_opam
${{ matrix.os == 'ubuntu-latest' && '/var/cache/apt/archives' || matrix.os == 'macos-latest' && '~/Library/Caches/Homebrew' || ''}}
- run: opam install . --deps-only --with-test
- run: opam exec -- dune build
- run: opam exec -- dune runtest

0 comments on commit b25ee69

Please sign in to comment.