#!/usr/bin/env bash

ci_dir="$(dirname "$0")"
. "${ci_dir}/ci-common.sh"

fiat_crypto_CI_DIR="${CI_BUILD_DIR}/fiat-crypto"

git_checkout "${fiat_crypto_CI_BRANCH}" "${fiat_crypto_CI_GITURL}" "${fiat_crypto_CI_DIR}"

( cd "${fiat_crypto_CI_DIR}" && git submodule update --init --recursive )

fiat_crypto_CI_TARGETS="print-nobigmem nobigmem nonautogenerated-specific nonautogenerated-specific-display"
( cd "${fiat_crypto_CI_DIR}" && make ${fiat_crypto_CI_TARGETS} )

#!/usr/bin/env bash

ci_dir="$(dirname "$0")"
. "${ci_dir}/ci-common.sh"

fiat_crypto_CI_DIR="${CI_BUILD_DIR}/fiat-crypto"

git_checkout "${fiat_crypto_CI_BRANCH}" "${fiat_crypto_CI_GITURL}" "${fiat_crypto_CI_DIR}"

( cd "${fiat_crypto_CI_DIR}" && git submodule update --init --recursive )

fiat_crypto_CI_TARGETS1="printlite lite lite-display"
fiat_crypto_CI_TARGETS2="print-nobigmem nobigmem nonautogenerated-specific nonautogenerated-specific-display"
( cd "${fiat_crypto_CI_DIR}" && make ${fiat_crypto_CI_TARGETS1} && make ${fiat_crypto_CI_TARGETS2} )

Build fiat-crypto targets in sequence
[ci] Build fiat-crypto targets in sequence

This should hopefully alleviate memory problems on gitlab, by first
building the `lite` targets, and then building the remaining
not-that-big targets.
