Skip to content

Commit

Permalink
Update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Octachron committed Sep 23, 2024
1 parent f5888f4 commit 47d2625
Showing 1 changed file with 15 additions and 36 deletions.
51 changes: 15 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,58 +1,37 @@
name: Basic CI
name: Builds, tests & co

on:
- pull_request
- push
- pull_request

permissions: read-all

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- macos-latest
- windows-latest
ocaml-compiler:
- 5.0.x
- 4.14.x
- 4.08.x
- 4.03.x

runs-on: ${{ matrix.os }}

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

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
ocaml-compiler: 5.2
ocaml-compiler: 4.14
ocaml-compiler: 4.04

- run: opam install . --deps-only --with-doc --with-test

- run: opam exec -- dune build @install
- run: opam install . --deps-only --with-test

- run: opam exec -- dune runtest
- run: opam exec -- dune build

- name: Upload the build artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}-${{ matrix.ocaml-version }}-world.exe
path: _build/default/world.exe

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

- name: Use OCaml 4.13.x
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.13.x
dune-cache: true

- name: Lint doc
uses: ocaml/setup-ocaml/lint-doc@v2
- run: opam exec -- dune runtest

0 comments on commit 47d2625

Please sign in to comment.