From c6e07ed717e9976d5804175b8f7bef2ef145c91a Mon Sep 17 00:00:00 2001 From: zapashcanon Date: Mon, 20 Jan 2025 03:29:59 +0100 Subject: [PATCH] update CI file --- .gitea/workflows/build.yaml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index e077fa6..eaff5b6 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -5,22 +5,17 @@ on: [push] jobs: build: runs-on: ubuntu-latest + container: + image: zapashcanon/gitea-ocaml-ci:latest steps: - name: checkout uses: actions/checkout@v4 - - name: setup-ocaml - run: | - apt update -yqq - apt install opam -y - opam init --auto-setup --bare --enable-shell-hook --disable-sandboxing -y - opam switch --no-install --packages=ocaml.5.3.0 create . - ocaml --version - name: depext run: | - opam install . --depext-only --with-test --with-doc -y + opam install . --depext-only --with-test --with-doc --with-dev-setup -y - name: setup run: | - opam install . --deps-only --with-test --with-doc -y + opam install . --deps-only --with-test --with-doc --with-dev-setup -y - name: build run: | opam exec -- dune build @install @@ -36,4 +31,4 @@ jobs: opam exec -- dune build @fmt || (echo "\n⚠️ please run \`dune fmt\` and try again" && exit 1) - name: lint-fresh-opam-file run: | - git diff --exit-code owi.opam || (echo "⚠️ please run \`dune build\`, commit the changes to owi.opam, and then try again" && exit 1) + git diff --exit-code *.opam || (echo "⚠️ please run \`dune build\`, commit the changes to the opam file, and then try again" && exit 1)