From 47d26259f773bf090c5e61e6ff8349f57e440c2c Mon Sep 17 00:00:00 2001 From: octachron Date: Mon, 23 Sep 2024 17:42:53 +0200 Subject: [PATCH] Update ci --- .github/workflows/ci.yml | 51 ++++++++++++---------------------------- 1 file changed, 15 insertions(+), 36 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c49021..62e888e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,8 +1,10 @@ -name: Basic CI +name: Builds, tests & co on: - - pull_request - push + - pull_request + +permissions: read-all jobs: build: @@ -10,49 +12,26 @@ jobs: 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