Skip to content

ocaml-dune/setup-dune

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

setup-dune: a GitHub Action to install and setup dune, developer preview

How to use it

Create a .github/workflows/dune.yml file with something like:

name: Build and test

on: [push, pull_request]

jobs:
  build:
    strategy:
      matrix:
        runs-on: [ ubuntu-latest, macos-latest, macos-13 ]
    runs-on: ${{ matrix.runs-on }}

    steps:
      - name: Checkout code
        uses: actions/checkout@v4
      - name: Use dune
        uses: ocaml-dune/setup-dune@v0
        with:
          automagic: true

Inputs

Only one input for now.

  • automagic: if true, it will run automatically dune pkg lock, dune build and dune runtest. Defaults to false.

Outputs

Only one output for now.

  • dune-cache-hit: reports whether the Dune cache was found in the GitHub Action cache.

Contributions

Contributions are most welcome!


This project has been created and is maintained by Tarides.

About

A GitHub Action to install and set up Dune

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published