From a6c6c6ffa2c137557be82c97f12f561c5069d3d8 Mon Sep 17 00:00:00 2001 From: "Charlton, Scott R." Date: Mon, 6 Nov 2023 12:07:42 -0700 Subject: [PATCH] Leave tar as-is * see https://github.com/actions/cache/issues/1010 --- action.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/action.yml b/action.yml index 30630f5..12b3297 100644 --- a/action.yml +++ b/action.yml @@ -29,11 +29,6 @@ runs: if: runner.os == 'Windows' && contains(inputs.compiler, 'intel') shell: bash run: echo "ONEAPI_ROOT=C:\Program Files (x86)\Intel\oneAPI" >> "$GITHUB_ENV" - # GNU tar can't handle symlinks on Windows, hide it so default Windows tar is used to restore cache - - name: Hide GNU tar - if: runner.os == 'Windows' && contains(inputs.compiler, 'intel') - shell: bash - run: mv "C:\Program Files\Git\usr\bin\tar.exe" "$RUNNER_TEMP\tar.exe" - name: Get date if: runner.os == 'Windows' && contains(inputs.compiler, 'intel') id: get-date @@ -46,10 +41,6 @@ runs: with: path: ${{ env.ONEAPI_ROOT }} key: ${{ runner.os }}-${{ inputs.compiler }}-${{ inputs.version }}-${{ steps.get-date.outputs.date }} - - name: Restore GNU tar - if: runner.os == 'Windows' && contains(inputs.compiler, 'intel') - shell: bash - run: mv "$RUNNER_TEMP\tar.exe" 'C:\Program Files\Git\usr\bin\tar.exe' # Set up the selected toolchain or compiler - name: Setup toolchain