From 3e563168f53b5d50627dc7467a12c3785a82fe6b Mon Sep 17 00:00:00 2001 From: uncor3 Date: Tue, 21 Oct 2025 08:05:33 +0000 Subject: [PATCH] fix lib build order --- .github/workflows/build-linux.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 1e35219..891cdce 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -90,24 +90,23 @@ jobs: - name: Build libimobiledevice suite (versioned tarballs) run: | set -euo pipefail - workspace="$PWD" tmp="$PWD/_tmp_libs" mkdir -p "$tmp" cd "$tmp" - declare -A versions=( - ["libplist"]="$LIBPLIST_VER" - ["libtatsu"]="$LIBTATSU_VER" - ["libimobiledevice-glue"]="$LIBIMOBILEDEVICE_GLUE_VER" - ["libimobiledevice"]="$LIBIMOBILEDEVICE_VER" - ["libirecovery"]="$LIBIRECOVERY_VER" - ) - base_url="https://github.com/libimobiledevice" - for name in "${!versions[@]}"; do - ver="${versions[$name]}" + libs=( "libplist" "libtatsu" "libimobiledevice-glue" "libimobiledevice" "libirecovery" ) + + for name in "${libs[@]}"; do + ver_var=$(echo "${name^^}_VER" | sed 's/-/_/g') # e.g. LIBPLIST_VER + ver="${!ver_var:-}" + if [ -z "$ver" ]; then + echo "Version for $name not set (env var $ver_var)" + exit 1 + fi + archive="${name}-${ver}.tar.bz2" url="${base_url}/${name}/releases/download/${ver}/${archive}" echo "=== Processing $name $ver ===" @@ -118,8 +117,6 @@ jobs: tar xjf "$archive" srcdir="${name}-${ver}" - - pushd "$srcdir" ./configure