remove the godot reinstallation which intereferes with the caching for some reason
This commit is contained in:
50
action.yml
50
action.yml
@@ -45,35 +45,35 @@ runs:
|
||||
restore-keys: ${{ env.CACHE_NAME }}
|
||||
enableCrossOsArchive: true
|
||||
|
||||
- name: "Download and Install Godot ${{ inputs.godot-version }}-${{ inputs.godot-status }}"
|
||||
if: steps.godot-cache-binary.outputs.cache-hit != 'true'
|
||||
continue-on-error: false
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p ${{ inputs.install-path }}
|
||||
chmod 770 ${{ inputs.install-path }}
|
||||
DIR="$HOME/.config/godot"
|
||||
if [ ! -d "$DIR" ]; then
|
||||
mkdir -p "$DIR"
|
||||
chmod 770 "$DIR"
|
||||
fi
|
||||
# - name: "Download and Install Godot ${{ inputs.godot-version }}-${{ inputs.godot-status }}"
|
||||
# if: steps.godot-cache-binary.outputs.cache-hit != 'true'
|
||||
# continue-on-error: false
|
||||
# shell: bash
|
||||
# run: |
|
||||
# mkdir -p ${{ inputs.install-path }}
|
||||
# chmod 770 ${{ inputs.install-path }}
|
||||
# DIR="$HOME/.config/godot"
|
||||
# if [ ! -d "$DIR" ]; then
|
||||
# mkdir -p "$DIR"
|
||||
# chmod 770 "$DIR"
|
||||
# fi
|
||||
|
||||
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
|
||||
# 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_PACKAGE=$GODOT_BIN.zip
|
||||
echo "Download URL: $DOWNLOAD_URL/$GODOT_PACKAGE"
|
||||
wget --progress=bar:force:noscroll $DOWNLOAD_URL/$GODOT_PACKAGE -P ${{ inputs.install-path }}
|
||||
unzip ${{ inputs.install-path }}/$GODOT_PACKAGE -d ${{ inputs.install-path }}
|
||||
rm -rf ${{ inputs.install-path }}/$GODOT_PACKAGE
|
||||
# GODOT_PACKAGE=$GODOT_BIN.zip
|
||||
# echo "Download URL: $DOWNLOAD_URL/$GODOT_PACKAGE"
|
||||
# wget --progress=bar:force:noscroll $DOWNLOAD_URL/$GODOT_PACKAGE -P ${{ inputs.install-path }}
|
||||
# unzip ${{ inputs.install-path }}/$GODOT_PACKAGE -d ${{ inputs.install-path }}
|
||||
# rm -rf ${{ inputs.install-path }}/$GODOT_PACKAGE
|
||||
|
||||
echo "Run linux part"
|
||||
mv ${{ inputs.install-path }}/$GODOT_BIN/* ${{ inputs.install-path }}
|
||||
rmdir ${{ inputs.install-path }}/$GODOT_BIN/
|
||||
# echo "Run linux part"
|
||||
# mv ${{ inputs.install-path }}/$GODOT_BIN/* ${{ inputs.install-path }}
|
||||
# rmdir ${{ inputs.install-path }}/$GODOT_BIN/
|
||||
|
||||
mv ${{ inputs.install-path }}/Godot_v* ${{ inputs.install-path }}/godot
|
||||
chmod u+x ${{ inputs.install-path }}/godot
|
||||
echo "${{ inputs.install-path }}/godot"
|
||||
# mv ${{ inputs.install-path }}/Godot_v* ${{ inputs.install-path }}/godot
|
||||
# chmod u+x ${{ inputs.install-path }}/godot
|
||||
# echo "${{ inputs.install-path }}/godot"
|
||||
|
||||
- name: "print restored version - ${{ inputs.godot-version }}"
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user