Skip to content

esperanto-cosmopolitan requires OCaml 4.13 (due to String.empty) #356

esperanto-cosmopolitan requires OCaml 4.13 (due to String.empty)

esperanto-cosmopolitan requires OCaml 4.13 (due to String.empty) #356

Workflow file for this run

name: Compile
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
operating-system: [ubuntu-latest]
ocaml-version: ["4.13.0", "4.13.1", "4.14.0", "4.14.1"]
runs-on: ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v2
with:
lfs: true
- uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
# See jart/cosmopolitan#3
- name: Fix binfmt and Cosmopolitan
run: sudo sh -c "echo ':APE:M::MZqFpD::/bin/sh:' >/proc/sys/fs/binfmt_misc/register"
- name: Pinning packages
run: opam pin add -t -yn -vvv --kind=path .
- name: Install cosmopolitan/esperanto and dune
run: opam depext -iyt -v esperanto-cosmopolitan x86_64-esperanto aarch64-esperanto dune
- name: Compiling example project (cat.com)
run: |
cd example/
opam install ocamlfind
opam exec -- dune build ./cat.exe
opam exec -- ./link.sh
- name: Execute cat.com
run: |
cd example/
./cat.com < cat.ml