Compare commits

..

1 commit

Author SHA1 Message Date
Arthur Bit-Monnot
414dba5f62 ocaml sandbox config 2023-11-24 18:28:17 +01:00
2 changed files with 12 additions and 7 deletions

View file

@ -11,10 +11,11 @@ jobs:
matrix:
os:
# - macos-latest
- ubuntu-latest
# - ubuntu-latest
# - windows-latest
- ubuntu-18.04
ocaml-version:
- 4.14.2
- 4.11.0
# - 4.10.1
# - 4.09.1
# - 4.08.1
@ -28,17 +29,17 @@ jobs:
- name: Try to restore opam cache
if: runner.os != 'Windows'
id: opam-cache
uses: actions/cache@v4
uses: actions/cache@v2
with:
path: "~/.opam"
key: ${{ matrix.os }}-${{ matrix.ocaml-version }}
- name: Use OCaml ${{ matrix.ocaml-version }}
uses: avsm/setup-ocaml@v3
uses: avsm/setup-ocaml@v1
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
ocaml-version: ${{ matrix.ocaml-version }}
- run: opam install dune
- run: opam install ocamlbuild
- name: Build project
run: eval $(opam env) && make build
- name: Run demo

View file

@ -3,5 +3,9 @@
"*.ml": "ocaml",
"*.mli": "ocaml"
},
"editor.formatOnSave": true
"editor.formatOnSave": true,
"ocaml.sandbox": {
"kind": "custom",
"template": "opam exec --root /mnt/commetud/GEI/OCaml/.opam -- $prog $args",
}
}