From 6feb928bb3cc603b7b43e5b2fec3a3ec5b7269e3 Mon Sep 17 00:00:00 2001 From: Grant Nelson Date: Wed, 10 Jul 2024 12:09:59 -0600 Subject: [PATCH] Experiment for splitting package list --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0cd428ba5..4a955f0ee 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -199,8 +199,8 @@ jobs: ) stride=$((${#PACKAGE_NAMES[@]} / $NUMBER_OF_PARTS)) - offset=stride*$((i - 1)) - if [ $i -lt $NUMBER_OF_PARTS ]; then + offset=stride*$((${{ matrix.part }} - 1)) + if [ ${{ matrix.part }} -lt $NUMBER_OF_PARTS ]; then PACKAGE_NAMES_FOR_PART=${PACKAGE_NAMES[@]:offset:stride} else PACKAGE_NAMES_FOR_PART=${PACKAGE_NAMES[@]:offset}