Skip to content

Commit dba76b3

Browse files
committed
use ~ instead of $HOME for cache path
1 parent 7e271ea commit dba76b3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/playground.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@ jobs:
1414
- name: Checkout code
1515
uses: actions/checkout@v2.0.0
1616
- name: Cache .opam folder
17+
id: cache-opam
1718
uses: actions/cache@v1
1819
with:
19-
path: $HOME/.opam
20-
key: ${{ runner.os }}-opam-v1
20+
path: ~/.opam
21+
key: ${{ runner.os }}-opam-4.06.1-3.5.1-v1
2122
- name: Use OCaml ${{ matrix.ocaml-version }}
2223
uses: avsm/setup-ocaml@v1.0
2324
with:
2425
ocaml-version: ${{ matrix.ocaml-version }}
25-
- run: opam install js_of_ocaml.3.5.1
26+
- if: steps.cache-opam.outputs.cache-hit != 'true'
27+
run: opam install js_of_ocaml.3.5.1
2628
- run: git submodule update --init && ./scripts/buildocaml.js
2729
- run: ./scripts/ninja.js config && ./scripts/ninja.js build
2830
- run: mkdir playground && mkdir playground/stdlib

0 commit comments

Comments
 (0)