Debian Codegraph @

dev/ci/scripts/ci-iris.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2
3 set -e
4
5 ci_dir="$(dirnamescip-shell system . . 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=$(grepscip-shell system . . grep. -F '"rocq-iris-heap-lang"' < "${CI_BUILD_DIR}/iris_examples/coq-iris-examples.opam" | sedscip-shell system . . sed. 's/.*"dev\.[0-9][0-9.-]*\.\([0-9a-z][0-9a-z]*\)".*/\1/')
12 [scip-shell system . . `[`. -n "$iris_CI_REF" ] || { echoscip-shell system . . 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=$(grepscip-shell system . . grep. -F '"rocq-stdpp"' < "${CI_BUILD_DIR}/iris/rocq-iris.opam" | sedscip-shell system . . sed. 's/.*"dev\.[0-9][0-9.-]*\.\([0-9a-z][0-9a-z]*\)".*/\1/')
19 [scip-shell system . . `[`. -n "$stdpp_CI_REF" ] || { echoscip-shell system . . echo. "Could not find stdpp dependency version" && exit 1; }
20
21 # Download std++
22 git_download stdpp
23
24 if [scip-shell system . . `[`. "$DOWNLOAD_ONLY" ]; then exit 0; fi
25
26 # Build
27
28 ( cd "${CI_BUILD_DIR}/stdpp"
29 makescip-shell system . . make.
30 makescip-shell system . . make. install
31 )
32
33 ( cd "${CI_BUILD_DIR}/iris"
34 makescip-shell system . . make.
35 makescip-shell system . . make. validate
36 makescip-shell system . . make. install
37 )
38
39 ( cd "${CI_BUILD_DIR}/iris_examples"
40 makescip-shell system . . make.
41 makescip-shell system . . make. install
42 )