Skip to content

Avoid call of opam when we install esperanto-cosmopolitan via opam #376

Avoid call of opam when we install esperanto-cosmopolitan via opam

Avoid call of opam when we install esperanto-cosmopolitan via opam #376

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
- uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
allow-prerelease-opam: true
# 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 --with-version=dev .
- 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