From 505314294f02e7c19ac95e4d0ed37fd397a54b46 Mon Sep 17 00:00:00 2001 From: melMass Date: Sat, 29 Jul 2023 00:25:24 +0200 Subject: [PATCH] =?UTF-8?q?ci:=20=E2=9C=A8=20store=20order=20of=20install?= =?UTF-8?q?=20for=20wheels?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/package_wheels.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package_wheels.yml b/.github/workflows/package_wheels.yml index d8677c0..0044829 100644 --- a/.github/workflows/package_wheels.yml +++ b/.github/workflows/package_wheels.yml @@ -27,10 +27,10 @@ jobs: steps: - name: ♻️ Checking out the repository uses: actions/checkout@v3 - - name: "🐍 Setting up Python" + - name: '🐍 Setting up Python' uses: actions/setup-python@v4 with: - python-version: "3.10.9" + python-version: '3.10.9' - name: 📦 Building and Bundling wheels shell: bash @@ -43,6 +43,13 @@ jobs: IFS=', ' read -r -a package_array <<< "$packages" + # Save reversed package_array to wheel_order.txt + reversed_array=() + for ((idx=${#package_array[@]}-1; idx>=0; idx--)); do + reversed_array+=("${package_array[idx]}") + done + printf '%s\n' "${reversed_array[@]}" > ./wheels/wheel_order.txt + printf "Autodetect this source package: \e[32m%s\e[0m\n" "${package_array[@]}" # Iterate through the wheel files and remove those that are not source built