File tree Expand file tree Collapse file tree 1 file changed +4
-21
lines changed Expand file tree Collapse file tree 1 file changed +4
-21
lines changed Original file line number Diff line number Diff line change 19
19
- ubuntu-latest
20
20
- windows-latest
21
21
ocaml :
22
- - ' 4.08.1'
23
22
- ' 4.03.0'
23
+ - ' 4.08.1'
24
24
- ' 4.12.0'
25
25
26
26
runs-on : ${{ matrix.os }}
@@ -32,23 +32,10 @@ jobs:
32
32
if_true : " D:\\ cygwin\\ home\\ runneradmin\\ .opam"
33
33
if_false : " ~/.opam"
34
34
35
- - name : Checkout code
36
- uses : actions/checkout@main
37
-
38
- - name : Cache opam
39
- id : cache-opam
40
- uses : actions/cache@v2
35
+ - uses : actions/checkout@v2
36
+ - uses : ocaml/setup-ocaml@v2
41
37
with :
42
- path : ${{ steps.path.outputs.value }}
43
- key : opam-${{ matrix.os }}-${{ matrix.ocaml }}
44
-
45
- - name : Use OCaml ${{ matrix.ocaml }}
46
- uses : avsm/setup-ocaml@v1
47
- with :
48
- ocaml-version : ${{ matrix.ocaml }}
49
-
50
- - run : opam update -u
51
- if : steps.cache-opam.outputs.cache-hit == 'true'
38
+ ocaml-compiler : ${{ matrix.ocaml-compiler }}
52
39
53
40
- run : opam pin -n .
54
41
70
57
- run : opam exec -- dune runtest -j 1 -p containers # test only core on non-ubuntu platform
71
58
if : ${{ matrix.os != 'ubuntu-latest' }}
72
59
73
- - name : Remove troublesome files for caching on windows
74
- if : matrix.os == 'windows-latest'
75
- run : |
76
- if (Test-Path D:\\cygwin\\home\\runneradmin\\.opam\\ocaml-variants.${{ matrix.ocaml }}+mingw64c\\.opam-switch\\sources\\ocamlbuild.0.14.0\\examples\\){Remove-Item –path D:\\cygwin\\home\\runneradmin\\.opam\\ocaml-variants.${{ matrix.ocaml }}+mingw64c\\.opam-switch\\sources\\ocamlbuild.0.14.0\\examples\\ –recurse}
You can’t perform that action at this time.
0 commit comments