Skip to content

Commit

Permalink
fix: Eof when installing using haxelib 4.0.2 with Neko 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Jul 20, 2024
1 parent fd225f6 commit bace063
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/actions/internal/install-haxelibs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,15 @@ runs:
esac
echo "HAXELIB_PATH=$HAXELIB_PATH" | tee -a "$GITHUB_ENV"
haxelib config
haxelib_version=$(haxelib version)
echo "haxelib version: $haxelib_version"
if [[ $haxelib_version == "4.0.2" ]]; then
# workaround for "Uncaught exception - Failed with error: Eof" which happens with newer Neko 2.4+
(set -x; curl -sSfL --connect-timeout 10 --retry 3 "https://lib.haxe.org/p/haxelib/4.1.0/download/" -o haxelib.zip)
(set -x; haxelib --always --global install haxelib.zip)
rm haxelib.zip
fi
(set -x; haxelib config)
haxelibs='${{ inputs.haxe-libs }}'
if [[ ${TEST_CPP:-} == "true" ]]; then
Expand Down

0 comments on commit bace063

Please sign in to comment.