Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Jul 20, 2024
1 parent bdeb251 commit 13ef373
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/actions/internal/install-haxelibs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ runs:
haxelib_version=$(haxelib version)
echo "haxelib version: $haxelib_version"
if [[ $haxelib_version == "4.0.2" ]]; then
# workaround for "Uncaught exception - Failed with error: Eof"
haxelib --global update haxelib
fi
(set -x; haxelib config)
haxelibs='${{ inputs.haxe-libs }}'
Expand Down Expand Up @@ -111,11 +115,7 @@ runs:
# in case it was already loaded from cache, delete it to prevent git errors like "You have divergent branches and need to specify how to reconcile them."
rm -rf "$HAXELIB_PATH/$lib_name/git"
if [[ $haxelib_version == "4.0.2" ]]; then # workaround for "Uncaught exception - Failed with error: Eof"
(set -x; haxelib git --always "$lib_name" "${lib_ver_splitted[0]}" ${lib_ver_splitted[1]:-} || true)
else
(set -x; haxelib git --always "$lib_name" "${lib_ver_splitted[0]}" ${lib_ver_splitted[1]:-})
fi
(set -x; haxelib git --always "$lib_name" "${lib_ver_splitted[0]}" ${lib_ver_splitted[1]:-})
continue;
fi
Expand All @@ -130,11 +130,7 @@ runs:
if [[ ! -f $HAXELIB_PATH/$lib_name/${lib_ver//./,}/haxelib.json ]]; then
(set -x; curl -sSfL --connect-timeout 10 --retry 3 "https://lib.haxe.org/p/$lib_name/$lib_ver/download/" -o "$lib_name.zip") || exit $?
if [[ $haxelib_version == "4.0.2" ]]; then # workaround for "Uncaught exception - Failed with error: Eof"
(set -x; haxelib --debug --always install "$lib_name.zip" || true)
else
(set -x; haxelib --debug --always install "$lib_name.zip")
fi
(set -x; haxelib --debug --always install "$lib_name.zip")
rm "$lib_name.zip"
else
echo "Library $lib_name $lib_ver is already present."
Expand Down

0 comments on commit 13ef373

Please sign in to comment.