Skip to content

Commit

Permalink
Add ring-ci.yml (attempt 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
xvw committed Jul 26, 2024
1 parent f4a43d0 commit 2afc361
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/ring-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Build, test, lint
on:
- push
- pull_request

jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- "5.1"
- "5.2"
runs-on: ${{matrix.os}}
steps:
- name: Checkout tree
uses: actions/checkout@v4

- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- run: opam install . --deps-only --with-test
- run: opam exec -- dune build
- run: opam exec -- dune runtest

- name: Upload the build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.ocaml-compiler }}-ring.exe
path: _build/default/bin/ring.exe

lint-doc:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4

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

- uses: ocaml/setup-ocaml/lint-doc@v3

lint-fmt:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4

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

- uses: ocaml/setup-ocaml/lint-fmt@v3

0 comments on commit 2afc361

Please sign in to comment.