Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d71cf9fa authored by Abhishek Aggarwal's avatar Abhishek Aggarwal
Browse files

docker-lineage-cicd: use all threads while building

parent cf3df729
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ if [ "$LOCAL_MIRROR" = true ]; then
  fi

  echo ">> [$(date)] Syncing mirror repository" | tee -a "$repo_log"
  repo sync --force-sync --no-clone-bundle &>> "$repo_log"
  repo sync -j$(nproc --all) --force-sync --no-clone-bundle &>> "$repo_log"

  if [ $? != 0 ]; then
    sync_successful=false
@@ -163,7 +163,7 @@ for branch in ${BRANCH_NAME//,/ }; do

    echo ">> [$(date)] Syncing branch repository" | tee -a "$repo_log"
    builddate=$(date +%Y%m%d)
    repo sync -c --force-sync &>> "$repo_log"
    repo sync -c -j$(nproc --all) --force-sync &>> "$repo_log"

    if [ $? != 0 ]; then
      sync_successful=false
@@ -235,7 +235,7 @@ for branch in ${BRANCH_NAME//,/ }; do
          if [ "$LOCAL_MIRROR" = true ]; then
            echo ">> [$(date)] Syncing mirror repository" | tee -a "$repo_log"
            cd "$MIRROR_DIR"
            repo sync --force-sync --no-clone-bundle &>> "$repo_log"
            repo sync -j$(nproc --all) --force-sync --no-clone-bundle &>> "$repo_log"

            if [ $? != 0 ]; then
              sync_successful=false
+2 −2
Original line number Diff line number Diff line
@@ -119,7 +119,7 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then

  echo ">> [$(date)] Syncing branch repository"
  builddate=$(date +%Y%m%d)
  repo_out=$(repo sync -c --force-sync 2>&1 > /dev/null)
  repo_out=$(repo sync -c -j$(nproc --all) --force-sync 2>&1 > /dev/null)
  repo_status=$?
  echo -e $repo_out

@@ -189,7 +189,7 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then
      cd "$SRC_DIR/$branch_dir" || return 1


      if ! repo sync -c --force-sync; then
      if ! repo sync -c -j$(nproc --all) --force-sync; then
        sync_successful=false
        build_device=false
      fi