Skip to content

Releases: ocaml/setup-ocaml

v2.0.0-beta7

11 Nov 20:11
Compare
Choose a tag to compare
v2.0.0-beta7 Pre-release
Pre-release

Fixed

  • Return an empty array to avoid depext failure when depext flags are not passed.

v2.0.0-beta6

11 Nov 18:43
Compare
Choose a tag to compare
v2.0.0-beta6 Pre-release
Pre-release

Changed

  • Unlock opam 2.1 on the Ubuntu and macOS runners.

v2.0.0-beta5

03 Oct 19:42
Compare
Choose a tag to compare
v2.0.0-beta5 Pre-release
Pre-release

Changed

  • Reduce GitHub API calls to avoid issues that can easily hit rate-limiting.

Fixed

  • If no user-input version is found in the opam-repository, explicitly raise an error instead of implicitly breaking the workflow.
  • Retrieve the base compiler version from opam-repository to use the live released compiler version.

v2.0.0-beta4

06 Sep 15:36
0652c52
Compare
Choose a tag to compare
v2.0.0-beta4 Pre-release
Pre-release

Changed

  • Set OPAMSOLVERTIMEOUT to 1000 to avoid a timeout even if the opam solver is slow.
  • Increase cache hit ratio by loosening restore keys of opam cache.

v2.0.0-beta3

31 Jul 13:24
Compare
Choose a tag to compare
v2.0.0-beta3 Pre-release
Pre-release

Changed

  • Use the week number to manage Cygwin cache.

Fixed

  • ​Set repository priorities correctly for multiple repositories feature.
  • Lock the version of opam to be installed only to < 2.1 releases until opam 2.2 is released.

v1.1.12

31 Jul 13:31
Compare
Choose a tag to compare

Fixed

  • Stop installing depext package on macOS runners (opam is now at 2.1.0).

v2.0.0-beta2

24 Jun 18:49
Compare
Choose a tag to compare
v2.0.0-beta2 Pre-release
Pre-release

Changed

  • Changed to force an update of the opam cache if the week number is changed.

Removed

  • Removed the profiling functionality added in 2.0.0-alpha.

v2.0.0-beta

19 Jun 00:16
Compare
Choose a tag to compare
v2.0.0-beta Pre-release
Pre-release

Added

  • ​Added opam-repositories input to support multiple opam repositories.

Removed

  • The opam-repository input has been removed in order to add the opam-repositories input.

v2.0.0-alpha

22 May 13:12
Compare
Choose a tag to compare
v2.0.0-alpha Pre-release
Pre-release

Added

  • Added support for 32 bits compiler variants.
  • Added semver-style version matching support.
  • Cache opam root (~/.opam on Unix, D:\.opam on Windows), opam download-cache (~/.opam/download-cache on Unix, D:\.opam\download-cache on Windows), and opam local switch (_opam).
  • If dune-cache enabled, install dune, automatically configure the dune cache for the most efficient use in CI (exports DUNE_CACHE=enabled, DUNE_CACHE_TRANSPORT=direct. TRANSPORT must be direct, not daemon, to speed up the opam install process and to support Windows: ocaml/dune#4166, ocaml/dune#4167), and share the dune cache directory for each run.
  • If opam-pin is enabled, pin the local packages specified by opam-local-packages.
  • If opam-depext is enabled, install the system dependencies specified by opam-local-packages via depext
  • If opam-disable-sandboxing is enabled, sandboxing is disabled for all platforms except Windows. (Sandboxing is always disabled on the Windows runners due to limitations of opam.)
  • The profiling functionality allows us to check the duration of each group if debug mode is enabled. (https://docs.github.com/en/actions/managing-workflow-runs/enabling-debug-logging)

Changed

  • The Windows runners install mingw64-i686-gcc-core and mingw64-i686-gcc-g++ for 32 bit compiler variant support.
  • Clean the log output by grouping some operations.
  • The compiler will be initialised in all platforms with an opam local switch to eliminate differences between platforms and prepare for full dependency caching in the future.
  • The macOS and Ubuntu runners install and cache opam from the GitHub release directly without the system package manager.
  • The macOS and Ubuntu runners install darcs and mercurial.
  • The Windows runners install mercurial.
  • Export OPAMCOLOR=always.
  • Export OPAMERRLOGLEN=0.
  • Export OPAMPRECISETRACKING=1.
  • Export OPAMSOLVERTIMEOUT=500.
  • Export OPAMROOT=D:\.opam on the Windows runners.
  • Export OPAMVERBOSE=true if the actions debug mode is enabled. (https://docs.github.com/en/actions/managing-workflow-runs/enabling-debug-logging)
  • Export MSYS=winsymlinks:native for @actions/cache on the Windows runners.
  • Export HOME=%USERPROFILE% for opam on the Windows runners.

Removed

  • The ocaml-version input has been removed. Use the ocaml-compiler instead.
  • The simplified version specifying scheme (e.g. 4.12.0) support has been removed.

Fixed

  • Use the appropriate file system behavior parameters on the Windows runners. (R2L:1, R2R:1)
  • Add ppa: avsm/musl on 18.04 and older Ubuntu runners.
  • Pass --enable-shell-hook to opam init fixes a bug that must be run via opam exec in subsequent steps.
  • The Ubuntu runners install gcc-multilib, g++-multilib for ocaml-option-32bit.

v1.1.11

12 May 07:06
Compare
Choose a tag to compare

Changed

  • Stop setting switch jobs variable on Windows (OPAMJOBS is sufficient).