This commit is contained in:
parent
7d0ce3b141
commit
c6e07ed717
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user