Skip to content

Commit c004184

Browse files
committed
Initial commit
0 parents  commit c004184

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Cache apt packages for setup-ocaml
13+
uses: awalsh128/[email protected]
14+
with:
15+
packages: bubblewrap darcs g++-multilib gcc-multilib mercurial musl-tools rsync
16+
version: v2
17+
18+
- name: Setup OCaml
19+
uses: ocaml/[email protected]
20+
with:
21+
# ocaml-compiler: ocaml.5.2.0,ocaml-option-static
22+
ocaml-compiler: 5.2.0
23+
allow-prerelease-opam: true
24+
opam-pin: false
25+
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- name: Test compile
30+
run: opam exec -- ocamlopt -ccopt -static a.ml
31+
32+
- name: Check output
33+
run: file a.out
34+
35+
- name: Run output
36+
run: ./a.out

a.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
let () = print_endline "hello world"

0 commit comments

Comments
 (0)