put the godot installation right in the main action file

This commit is contained in:
2026-03-08 10:25:05 +01:00
parent dbbbbd8379
commit 3be0674d62

View File

@@ -40,7 +40,7 @@ runs:
uses: actions/cache@v5 uses: actions/cache@v5
id: godot-cache-binary id: godot-cache-binary
with: with:
path: "/home/runner/godot-linux" path: ${{ inputs.install-path }}
key: ${{ env.CACHE_NAME }} key: ${{ env.CACHE_NAME }}
restore-keys: ${{ env.CACHE_NAME }} restore-keys: ${{ env.CACHE_NAME }}
enableCrossOsArchive: true enableCrossOsArchive: true
@@ -78,7 +78,7 @@ runs:
- name: "print restored version - ${{ inputs.godot-version }}" - name: "print restored version - ${{ inputs.godot-version }}"
shell: bash shell: bash
run: | run: |
/home/runner/godot-linux/godot --version ${{ inputs.install-path }}/godot --version
- name: "Set .NET SDK version" - name: "Set .NET SDK version"
if: ${{ !cancelled() }} if: ${{ !cancelled() }}
@@ -107,7 +107,7 @@ runs:
- name: "Restore Godot project cache" - name: "Restore Godot project cache"
if: ${{ !cancelled() }} if: ${{ !cancelled() }}
env: env:
GODOT_BIN: "/home/runner/godot-linux/godot" GODOT_BIN: "${{ inputs.install-path }}/godot"
shell: bash shell: bash
run: | run: |
cd "${{ inputs.project_dir }}" cd "${{ inputs.project_dir }}"