Debian Codegraph @

dev/ci/scripts/ci-iris.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2
3 set -e
4
5 ci_dir="$(dirname "$0")"
6 . "${ci_dir}/ci-common.sh"
7
8 git_download iris_examples
9
10 # Extract required version of Iris (avoiding "+" which does not work on MacOS :( *)
11 iris_CI_REF=$(grep -F '"rocq-iris-heap-lang"' < "${CI_BUILD_DIR}/iris_examples/coq-iris-examples.opam" | sed 's/.*"dev\.[0-9][0-9.-]*\.\([0-9a-z][0-9a-z]*\)".*/\1/')
12 [ -n "$iris_CI_REF" ] || { echo "Could not find Iris dependency version" && exit 1; }
13
14 # Download Iris
15 git_download iris
16
17 # Extract required version of std++
18 stdpp_CI_REF=$(grep -F '"rocq-stdpp"' < "${CI_BUILD_DIR}/iris/rocq-iris.opam" | sed 's/.*"dev\.[0-9][0-9.-]*\.\([0-9a-z][0-9a-z]*\)".*/\1/')
19 [ -n "$stdpp_CI_REF" ] || { echo "Could not find stdpp dependency version" && exit 1; }
20
21 # Download std++
22 git_download stdpp
23
24 if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi
25
26 # Build
27
28 ( cd "${CI_BUILD_DIR}/stdpp"
29 make
30 make install
31 )
32
33 ( cd "${CI_BUILD_DIR}/iris"
34 make
35 make validate
36 make install
37 )
38
39 ( cd "${CI_BUILD_DIR}/iris_examples"
40 make
41 make install
42 )