Skip to content

Commit

Permalink
fix(CI): Remove coq-bignums beforehand & Ensure make -C tests runs …
Browse files Browse the repository at this point in the history
…after `make install` (#87)

Co-authored-by: Erik Martin-Dorel <[email protected]>
Co-authored-by: Pierre Roux <[email protected]>
  • Loading branch information
3 people authored Feb 16, 2024
1 parent 3885b1a commit e6085d6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/docker-action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Beware not to destroy this file when regenerating it from meta.yml

name: Docker CI

on:
Expand Down Expand Up @@ -25,6 +27,14 @@ jobs:
with:
opam_file: 'coq-bignums.opam'
custom_image: ${{ matrix.image }}
install: |
startGroup "Install dependencies"
# sudo apt-get update -y -q
opam remove -y coq-bignums # remove coq-bignums already in image
opam pin add -n -y -k path $PACKAGE $WORKDIR
opam update -y
opam install --confirm-level=unsafe-yes -j 2 $PACKAGE --deps-only
endGroup
export: 'OPAMWITHTEST'
env:
OPAMWITHTEST: 'true'
Expand Down
8 changes: 5 additions & 3 deletions coq-bignums.opam
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ This Coq library provides BigN, BigZ, and BigQ that used to
be part of the standard library."""

build: [make "-j%{jobs}%"]
run-test: [make "-C" "tests" "-j%{jobs}%"]
install: [make "install"]
install: [
[make "install"]
[make "-C" "tests" "-j%{jobs}%"] {with-test}
]
depends: [
"ocaml"
"ocaml"
"coq" {= "dev"}
]

Expand Down

0 comments on commit e6085d6

Please sign in to comment.