Initial commit #10
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: CI | |
on: | |
push: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache apt packages for setup-ocaml | |
uses: awalsh128/[email protected] | |
with: | |
packages: bubblewrap darcs g++-multilib gcc-multilib mercurial musl-tools rsync | |
version: v2 | |
- name: Setup OCaml | |
uses: ocaml/[email protected] | |
with: | |
# ocaml-compiler: ocaml.5.2.0,ocaml-option-static | |
ocaml-compiler: 5.2.0 | |
allow-prerelease-opam: true | |
opam-pin: false | |
- name: Test compile | |
run: opam exec -- ocamlopt -ccopt -static a.ml | |
- name: Check output | |
run: file a.out | |
- name: Run output | |
run: ./a.out |