| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | ci_dir="$(dirname "$0")" |
| 6 | . "${ci_dir}/ci-common.sh" |
| 7 | |
| 8 | WITH_SUBMODULES=1 |
| 9 | git_download fiat_crypto_legacy |
| 10 | |
| 11 | if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi |
| 12 | |
| 13 | targets1=( |
| 14 | print-old-pipeline-lite-hardcoded |
| 15 | old-pipeline-lite-hardcoded |
| 16 | lite-display-hardcoded |
| 17 | ) |
| 18 | targets2=( |
| 19 | print-old-pipeline-nobigmem-hardcoded |
| 20 | old-pipeline-nobigmem-hardcoded |
| 21 | nonautogenerated-specific |
| 22 | nonautogenerated-specific-display |
| 23 | selected-specific |
| 24 | selected-specific-display |
| 25 | ) |
| 26 | |
| 27 | # Use external dependencies to avoid building coqprime from scratch |
| 28 | make_args=(EXTERNAL_DEPENDENCIES=1) |
| 29 | |
| 30 | export COQEXTRAFLAGS='-native-compiler no' |
| 31 | ( cd "${CI_BUILD_DIR}/fiat_crypto_legacy" |
| 32 | make "${make_args[@]}" "${targets1[@]}" |
| 33 | make -j 1 "${make_args[@]}" "${targets2[@]}" |
| 34 | ) |