File tree Expand file tree Collapse file tree 1 file changed +20
-37
lines changed Expand file tree Collapse file tree 1 file changed +20
-37
lines changed Original file line number Diff line number Diff line change 11name : Build
22
33on :
4- push :
5- branches :
6- - master
74 pull_request :
8- branches :
9- - master
5+ push :
106 schedule :
11- # To invalidate the caches for OPAM root every week.
12- - cron : ' 0 0 * * MON'
7+ # Prime the caches every Monday
8+ - cron : 0 1 * * MON
139
1410jobs :
1511 build :
@@ -19,44 +15,31 @@ jobs:
1915 os :
2016 - macos-latest
2117 - ubuntu-latest
22- ocaml-version :
23- - 4.08.1
24- - 4.09.1
25- - 4.10.2
26- - 4.11.2
27- - 4.12.0
18+ ocaml-compiler :
19+ - 4.08.x
20+ - 4.09.x
21+ - 4.10.x
22+ - 4.11.x
23+ - 4.12.x
2824
2925 runs-on : ${{ matrix.os }}
3026
31- env :
32- OPAMYES : true
33-
3427 steps :
3528 - name : Check out code
3629 uses : actions/checkout@v2
3730
38- - name : Get date to compute cache key
39- id : date
40- run : echo "::set-output name=week::$(date -u +%Y-%W)"
41-
42- - name : Cache OPAM root
43- uses : actions/cache@v2
31+ - name : Use OCaml ${{ matrix.ocaml-compiler }}
32+ uses : ocaml/setup-ocaml@v2
4433 with :
45- path : ~/.opam/
46- key :
47- build-${{ matrix.os }}-${{ matrix.ocaml-version }}-${{
48- steps.date.outputs.week }}-${{ hashFiles ('opam') }}
34+ ocaml-compiler : ${{ matrix.ocaml-compiler }}
35+ dune-cache : ${{ matrix.os != 'macos-latest' }}
36+ opam-depext : false
37+ opam-pin : false
4938
50- - name : Use OCaml ${{ matrix.ocaml-version }}
51- uses : avsm/setup-ocaml@v1
52- with :
53- ocaml-version : ${{ matrix.ocaml-version }}
39+ - run : opam pin add ocsigen-toolkit.dev . --no-action
40+
41+ - run : opam depext ocsigen-toolkit
5442
55- - name : Install library dependencies
56- run : |
57- opam pin add --no-action ocsigen-toolkit.dev .
58- opam depext ocsigen-toolkit.dev
59- opam install --deps-only ocsigen-toolkit.dev
43+ - run : opam install . --deps-only
6044
61- - name : Build library
62- run : opam exec -- make
45+ - run : opam exec -- make
You can’t perform that action at this time.
0 commit comments