Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup github actions for ocamlbuild #328

Merged
merged 11 commits into from
May 17, 2024
Merged

Setup github actions for ocamlbuild #328

merged 11 commits into from
May 17, 2024

Conversation

hhugo
Copy link
Collaborator

@hhugo hhugo commented May 16, 2024

This PR migrate the existing travis.yml CI instructions to github-actions.
Currently testing OCaml 4.08 .. 5.2

It also includes the following fixes.

The underlying reason for the MR is to make is easier to test fixes for windows, such as #323

@hhugo
Copy link
Collaborator Author

hhugo commented May 16, 2024

also, replaces #317

Copy link
Member

@gasche gasche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is impressive work, thanks!


let copy l dest =
ignore(Sys.command (Printf.sprintf "mkdir -p %s" dest));
List.iter (fun f -> ignore(Sys.command (Printf.sprintf "cp %s/%s %s" build_tree f dest))) l
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you write these with Sys.command @@ Filename.quote_command ...? It is good practice to protect ourselves against spaces in the build path.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filename.quote_command was introduced in OCaml 4.10. I could use Filename.quote but I don't really understand the implication of its documentation

    Warning: under Windows, the output is only suitable for use
    with programs that follow the standard Windows quoting
    conventions.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gasp, are we still trying to support OCaml releases older than 4.10? Okay for the current code then.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Debian stable has 4.13, oldstable has 4.11.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably need to bump the constraint in the opam file. It's currently 4.03, I think

@gasche gasche merged commit b55c235 into ocaml:master May 17, 2024
@hhugo hhugo deleted the gh-actions branch May 17, 2024 08:56
@gasche
Copy link
Member

gasche commented May 17, 2024

@hhugo would you be interested in the commit bit on ocamlbuild? I am not actively maintaining it, I guess that it could benefit from some help, and you seem very dedicated.

@hhugo
Copy link
Collaborator Author

hhugo commented May 17, 2024

@hhugo would you be interested in the commit bit on ocamlbuild? I am not actively maintaining it, I guess that it could benefit from some help, and you seem very dedicated.

I can do a bit of support, you can add me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants