Skip to content

Commit

Permalink
Add actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Dec 29, 2024
1 parent a8a3117 commit 8129314
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 22 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on: [push]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-24.04]
compiler: [4.14.2, 5.2.0]
steps:
- name: Build and test module
uses: savonet/build-and-test-ocaml-module@main
with:
ocaml-compiler: ${{ matrix.compiler }}
28 changes: 28 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Doc build

on:
push:
branches:
- main

jobs:
build_doc:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Setup OCaml
uses: toots/setup-ocaml@master
with:
ocaml-compiler: 4.14.x
- name: Pin locally
run: opam pin -y add --no-action .
- name: Install locally
run: opam install -y --with-doc .
- name: Build doc
run: opam exec dune build @doc
- name: Deploy doc
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: _build/default/_doc/_html
22 changes: 0 additions & 22 deletions .github/workflows/main.yml

This file was deleted.

0 comments on commit 8129314

Please sign in to comment.