Skip to content

Commit

Permalink
Simplify CI
Browse files Browse the repository at this point in the history
  • Loading branch information
xvw committed Jul 30, 2024
1 parent 9821efe commit 2657ce3
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/ring-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,23 @@ on:

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

- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
ocaml-compiler: "5.1.1"
- 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
name: ring.exe
path: _build/default/bin/ring.exe

lint-doc:
Expand All @@ -41,7 +33,7 @@ jobs:
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: "5.1"
ocaml-compiler: "5.1.1"

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

Expand All @@ -54,6 +46,6 @@ jobs:
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: "5.1"
ocaml-compiler: "5.1.1"

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

0 comments on commit 2657ce3

Please sign in to comment.