Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cknitt committed Jul 2, 2024
0 parents commit 101ec13
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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
1 change: 1 addition & 0 deletions a.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let () = print_endline "hello world"

0 comments on commit 101ec13

Please sign in to comment.