remove the godot reinstallation which intereferes with the caching for some reason

This commit is contained in:
2026-04-05 09:18:29 +02:00
parent 3be0674d62
commit 1c53879916

View File

@@ -45,35 +45,35 @@ runs:
restore-keys: ${{ env.CACHE_NAME }} restore-keys: ${{ env.CACHE_NAME }}
enableCrossOsArchive: true enableCrossOsArchive: true
- name: "Download and Install Godot ${{ inputs.godot-version }}-${{ inputs.godot-status }}" # - name: "Download and Install Godot ${{ inputs.godot-version }}-${{ inputs.godot-status }}"
if: steps.godot-cache-binary.outputs.cache-hit != 'true' # if: steps.godot-cache-binary.outputs.cache-hit != 'true'
continue-on-error: false # continue-on-error: false
shell: bash # shell: bash
run: | # run: |
mkdir -p ${{ inputs.install-path }} # mkdir -p ${{ inputs.install-path }}
chmod 770 ${{ inputs.install-path }} # chmod 770 ${{ inputs.install-path }}
DIR="$HOME/.config/godot" # DIR="$HOME/.config/godot"
if [ ! -d "$DIR" ]; then # if [ ! -d "$DIR" ]; then
mkdir -p "$DIR" # mkdir -p "$DIR"
chmod 770 "$DIR" # chmod 770 "$DIR"
fi # fi
DOWNLOAD_URL=https://github.com/godotengine/godot-builds/releases/download/${{ inputs.godot-version }}-${{ inputs.godot-status }} # DOWNLOAD_URL=https://github.com/godotengine/godot-builds/releases/download/${{ inputs.godot-version }}-${{ inputs.godot-status }}
GODOT_BIN=Godot_v${{ inputs.godot-version }}-${{ inputs.godot-status }}_mono_linux_x86_64 # GODOT_BIN=Godot_v${{ inputs.godot-version }}-${{ inputs.godot-status }}_mono_linux_x86_64
GODOT_PACKAGE=$GODOT_BIN.zip # GODOT_PACKAGE=$GODOT_BIN.zip
echo "Download URL: $DOWNLOAD_URL/$GODOT_PACKAGE" # echo "Download URL: $DOWNLOAD_URL/$GODOT_PACKAGE"
wget --progress=bar:force:noscroll $DOWNLOAD_URL/$GODOT_PACKAGE -P ${{ inputs.install-path }} # wget --progress=bar:force:noscroll $DOWNLOAD_URL/$GODOT_PACKAGE -P ${{ inputs.install-path }}
unzip ${{ inputs.install-path }}/$GODOT_PACKAGE -d ${{ inputs.install-path }} # unzip ${{ inputs.install-path }}/$GODOT_PACKAGE -d ${{ inputs.install-path }}
rm -rf ${{ inputs.install-path }}/$GODOT_PACKAGE # rm -rf ${{ inputs.install-path }}/$GODOT_PACKAGE
echo "Run linux part" # echo "Run linux part"
mv ${{ inputs.install-path }}/$GODOT_BIN/* ${{ inputs.install-path }} # mv ${{ inputs.install-path }}/$GODOT_BIN/* ${{ inputs.install-path }}
rmdir ${{ inputs.install-path }}/$GODOT_BIN/ # rmdir ${{ inputs.install-path }}/$GODOT_BIN/
mv ${{ inputs.install-path }}/Godot_v* ${{ inputs.install-path }}/godot # mv ${{ inputs.install-path }}/Godot_v* ${{ inputs.install-path }}/godot
chmod u+x ${{ inputs.install-path }}/godot # chmod u+x ${{ inputs.install-path }}/godot
echo "${{ inputs.install-path }}/godot" # echo "${{ inputs.install-path }}/godot"
- name: "print restored version - ${{ inputs.godot-version }}" - name: "print restored version - ${{ inputs.godot-version }}"
shell: bash shell: bash