Commit 569a3382 authored by Jan Kiene's avatar Jan Kiene
Browse files

add dut arg to build-binaries.sh

parent 98323f9a
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -39,6 +39,16 @@ merge-source)
  isar_post_rend_filename="./$DUT_POST_RENDERER_PATH_FOR_BUILD_DO_NOT_MODIFY"
  commit_file="$CUT_COMMIT_FILE"
  ;;
dut)
  # This produces the same binary names as merge-source, but sets branch_to_check_out differently
  # so that this is usable in non-merge-request pipelines
  branch_to_check_out="$CI_COMMIT_REF_NAME"
  ivas_cod_filename="./$DUT_ENCODER_PATH_FOR_BUILD_DO_NOT_MODIFY"
  ivas_dec_filename="./$DUT_DECODER_PATH_FOR_BUILD_DO_NOT_MODIFY"
  ivas_rend_filename="./$DUT_RENDERER_PATH_FOR_BUILD_DO_NOT_MODIFY"
  isar_post_rend_filename="./$DUT_POST_RENDERER_PATH_FOR_BUILD_DO_NOT_MODIFY"
  commit_file="$CUT_COMMIT_FILE"
  ;;
*)
  echo "Error: invalid mode: $mode"
  exit 2
@@ -47,11 +57,6 @@ esac

echo "Building $mode binaries from branch $branch_to_check_out"

# TODO: could probably always be run
if [[ "$mode" == "float-ref" ]]; then
  git rev-parse HEAD >"$CUT_COMMIT_FILE"
fi

current_commit_sha="$(git rev-parse HEAD)"

restore_stash() {
@@ -65,9 +70,7 @@ trap restore_stash EXIT
# should never fail, even if there is nothing to be stored
git stash

if [[ "$mode" != "merge-source" ]]; then
git checkout "$branch_to_check_out"
fi

bash "${CI_PROJECT_DIR}"/ivas-codec-ci/snippets/basop/activate-debug-mode-info-if-set.sh