Prepare v0.0.6 #382
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", "4.14.2"] | |
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 |