File tree Expand file tree Collapse file tree 1 file changed +27
-8
lines changed
Expand file tree Collapse file tree 1 file changed +27
-8
lines changed Original file line number Diff line number Diff line change @@ -16,20 +16,39 @@ jobs:
1616 path : source
1717 - name : Add name of current branch to environment as BRANCH_NAME
181819- - name : Retrieve build environment if cached # STEP 2
20- id : opam-cache
21- uses : actions/cache@v3
19+ - name : Set-up OCaml
20+ uses : ocaml/setup-ocaml@v3
2221 with :
23- path : ' /home/runner/.opam/'
22+ ocaml-compiler : 5.0.0
23+ dune-cache : true
24+ - name : Retrieve the switch environment if cached
25+ id : opam-cache-switch
26+ uses : actions/cache@v4
27+ with :
28+ path : " _opam"
2429 key : ${{ runner.os }}-modules-${{ hashFiles('./source/opam.export') }}
25- - name : Install dependencies and build tylr # STEP 3
30+ - name : Add opam repository archive
2631 run : |
27- sudo apt --assume-yes install opam
32+ eval $( opam env)
2833 export OPAMYES=1
29- opam init --compiler=ocaml-base-compiler.5.0.0
34+ opam repo add archive git+https://github.com/ocaml/opam-repository-archive
35+ - name : Install dependencies
36+ run : |
3037 eval $(opam env)
38+ export OPAMYES=1
39+ export DUNE_CACHE=enabled
40+ # opam install . --deps-only --with-test --locked
3141 make deps
32- make release
42+ working-directory : ./source
43+ - name : Clean opam switch
44+ run : |
45+ eval $(opam env)
46+ export OPAMYES=1
47+ opam clean --all-switches --download-cache --logs --repo-cache --unused-repositories
48+ - name : Build Release
49+ run : |
50+ export DUNE_CACHE=enabled
51+ opam exec -- dune build @src/fmt --auto-promote src --profile release
3352 working-directory : ./source
3453 - name : Checkout website build artifacts repo # STEP 4
3554 uses : actions/checkout@v2
You can’t perform that action at this time.
0 commit comments