setup-ocaml

GitHub Action for the OCaml programming language

MIT License

Stars
192
Committers
22

Bot releases are visible (Hide)

setup-ocaml - v2.2.4

Published by smorimoto 9 months ago

Changed

  • Update runtime dependencies.
setup-ocaml - v2.2.2

Published by smorimoto 10 months ago

Fixed

  • Use CJS for runtime environment for ocaml/setup-ocaml/analysis again.
setup-ocaml - v2.2.1

Published by smorimoto 10 months ago

Changed

  • Update runtime dependencies.
  • Adopt native ESM for runtime environment for ocaml/setup-ocaml/analysis.
setup-ocaml - v2.2.0

Published by smorimoto 10 months ago

Breaking Change

This release contains a breaking change for ocaml/setup-ocaml/deploy-doc@2. (As it is still marked as experimental, it is not relevant to the major version bump.)

Since decent official support is now available to deploy natively to GitHub Pages, the action has been deprecated and removed.

For native support, make sure your repository has Pages enabled and configured to build using GitHub Actions: https://github.com/[USERNAME]/[REPO]/settings/pages

Actual example is as follows:

name: Deploy odoc to GitHub Pages

on:
  push:
    branches:
      - main

permissions: read-all

concurrency:
  group: deploy-odoc
  cancel-in-progress: true

jobs:
  deploy-odoc:
    name: Deploy odoc to GitHub Pages

    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}

    permissions:
      contents: read
      id-token: write
      pages: write

    runs-on: ubuntu-latest

    steps:
      - name: Checkout tree
        uses: actions/checkout@v4

      - name: Set-up OCaml
        uses: ocaml/setup-ocaml@v2
        with:
          ocaml-compiler: "5.1"

      - name: Install dependencies
        run: opam install . --deps-only --with-doc

      - name: Build documentation
        run: opam exec -- dune build @doc

      - name: Set-up Pages
        uses: actions/configure-pages@v4

      - name: Upload artifact
        uses: actions/upload-pages-artifact@v2
        with:
          path: _build/default/_doc/_html

      - name: Deploy odoc to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v3

Added

  • Add opam support for the Dependency submission API.
  • Set HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK to 1 on the runner while installing OCaml.

Removed

  • Since decent official support is now available to deploy natively to GitHub Pages, deploy-doc has been deprecated and removed.
setup-ocaml - v2.1.8

Published by smorimoto 11 months ago

Fixed

  • Force all actions to exit with process.exit.
setup-ocaml - v2.1.7

Published by smorimoto 11 months ago

Changed

  • Expose OPAMCONFIRMLEVEL if allow-prerelease-opam is enabled.
setup-ocaml - v2.1.6

Published by smorimoto 11 months ago

Changed

  • Do not install dune for dune cache with depext.
setup-ocaml - v2.1.5

Published by smorimoto 11 months ago

Added

  • Expose OPAMCONFIRMLEVEL as unsafe-yes.
setup-ocaml - v2.1.4

Published by smorimoto 11 months ago

Fixed

  • Fix a typo in the key of allow-prerelease-opam input.
setup-ocaml - v2.1.3

Published by smorimoto 11 months ago

Changed

  • Adopt native ESM for runtime environment.
  • Reduce system-related internal calls as much as possible.
setup-ocaml - v2.1.2

Published by smorimoto 11 months ago

Fixed

  • Force post-process exit with process.exit.
setup-ocaml - v2.1.1

Published by smorimoto almost 1 year ago

Changed

  • Do not install opam-depext if using opam 2.2 or later.

Fixed

  • Do not set OPAMCLI if pre-release opam is allowed.
setup-ocaml - v2.1.0

Published by smorimoto about 1 year ago

Added

  • Add allow-prelease-opam input.
setup-ocaml - v2.0.21

Published by smorimoto about 1 year ago

Fixed

  • Prevent opam bug by leaving verbose mode undefined.
setup-ocaml - v2.0.20

Published by smorimoto about 1 year ago

Changed

  • Update default runtime to node20.
setup-ocaml - v2.0.19

Published by smorimoto over 1 year ago

Changed

  • Workaround dune cache hardlink failures by using copy mode always.
setup-ocaml - v2.0.18

Published by smorimoto over 1 year ago

Fixed

  • Cygwin pin to v3.4.6 workaround removed.
setup-ocaml - v2.0.17

Published by smorimoto over 1 year ago

Fixed

  • Temporarily hold Cygwin at 3.4.6 to workaround upstream tar packaging issue.
setup-ocaml - v2.0.16

Published by smorimoto over 1 year ago

Changed

  • Make logs around system packages more polite.
setup-ocaml - v2.0.15

Published by smorimoto over 1 year ago

Changed

  • Remove the action version from the cache key.
  • Update npm deps.