image: ralfjung/opam-ci:opam2

stages:
  - build

variables:
  CPU_CORES: "10"

.template: &template
  stage: build
  tags:
  - fp
  script:
  - git clone https://gitlab.mpi-sws.org/FP/iris-ci.git ci -b opam2
  - ci/buildjob
  cache:
    key: "$CI_JOB_NAME-gen_proofmode_WIP"
    paths:
    - opamroot/
  only:
  - gen_proofmode_WIP
  - /^ci/
  except:
  - triggers
  - schedules

## Build jobs

build-coq.8.8.2:
  <<: *template
  variables:
    OPAM_PINS: "coq version 8.8.2"
    TIMING_PROJECT: "igps"
    TIMING_CONF: "coq-8.8.2"
  tags:
  - fp-timing

build-iris.dev:
  <<: *template
  variables:
    OPAM_PINS: "coq version 8.8.2   coq-stdpp.dev git git+https://gitlab.mpi-sws.org/robbertkrebbers/coq-stdpp/#$STDPP_REV   coq-iris.dev git git+https://gitlab.mpi-sws.org/FP/iris-coq.git#$IRIS_REV"
  except:
  only:
  - triggers
  - schedules
