Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ml/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_build
4 changes: 4 additions & 0 deletions ml/bin/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(executable
(public_name rosettaboy)
(name main)
(libraries rosettaboy))
1 change: 1 addition & 0 deletions ml/bin/main.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let () = print_endline "Hello, World!"
3 changes: 3 additions & 0 deletions ml/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
opam exec -- dune build
mv ./_build/default/bin/main.exe ./rosettaboy-release
26 changes: 26 additions & 0 deletions ml/dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
(lang dune 3.15)

(name rosettaboy)

(generate_opam_files true)

(source
(github shish/rosettaboy))

(authors "Shish")

(maintainers "Shish")

(license LICENSE)

(documentation https://github.com/shish/rosettaboy)

(package
(name rosettaboy)
(synopsis "A short synopsis")
(description "A longer description")
(depends ocaml dune)
(tags
(topics "to describe" your project)))

; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project
2 changes: 2 additions & 0 deletions ml/lib/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(library
(name rosettaboy))
31 changes: 31 additions & 0 deletions ml/rosettaboy.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "A short synopsis"
description: "A longer description"
maintainer: ["Shish"]
authors: ["Shish"]
license: "LICENSE"
tags: ["topics" "to describe" "your" "project"]
homepage: "https://github.com/shish/rosettaboy"
doc: "https://github.com/shish/rosettaboy"
bug-reports: "https://github.com/shish/rosettaboy/issues"
depends: [
"ocaml"
"dune" {>= "3.15"}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/shish/rosettaboy.git"
2 changes: 2 additions & 0 deletions ml/test/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(test
(name test_rosettaboy))
Empty file added ml/test/test_rosettaboy.ml
Empty file.
4 changes: 4 additions & 0 deletions utils/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ ENV PATH="/home/dev/.go/bin:$PATH"
COPY --from=shish2k/rosettaboy-devkit-nim:2.0.2 --chown=${USER_ID}:${GROUP_ID} /home/dev/.nim /home/dev/.nim
ENV PATH="/home/dev/.nim/bin:$PATH"

# Install Ocaml tools
COPY --from=shish2k/rosettaboy-devkit-ocaml:5.1.1 --chown=${USER_ID}:${GROUP_ID} /home/dev/.opam /home/dev/.opam
ENV PATH="/home/dev/.opam/bin:$PATH"

# Install PHP tools
COPY --from=shish2k/rosettaboy-devkit-php:8.3.4 --chown=${USER_ID}:${GROUP_ID} /home/dev/.php /home/dev/.php
ENV PATH="/home/dev/.php/bin:$PATH"
Expand Down