diff --git a/.github/workflows/win-icc.yml b/.github/workflows/win-icc.yml index e30fb27..0fa7bd1 100644 --- a/.github/workflows/win-icc.yml +++ b/.github/workflows/win-icc.yml @@ -37,10 +37,10 @@ jobs: uses: actions/cache@v2 with: path: C:\Program Files (x86)\Intel\oneAPI\compiler - key: install-${{ env.WINDOWS_HPCKIT_URL }}-${{ env.WINDOWS_CPP_COMPONENTS }}-compiler-${{ hashFiles('**/scripts/cache_exclude_windows.sh') }} + key: install-${{ env.WINDOWS_HPCKIT_URL }}-${{ env.WINDOWS_CPP_COMPONENTS }}-compiler-${{ hashFiles('**/script/cache_exclude_windows.sh') }} - name: Install icc - run: scripts/install_windows.bat $WINDOWS_HPCKIT_URL $WINDOWS_CPP_COMPONENTS + run: script/install_windows.bat $WINDOWS_HPCKIT_URL $WINDOWS_CPP_COMPONENTS - name: CMake run: echo "/host_usr_local/bin" >> $GITHUB_PATH diff --git a/script/ci_cache_exclude_windows.sh b/script/ci_cache_exclude_windows.sh new file mode 100755 index 0000000..ba672f2 --- /dev/null +++ b/script/ci_cache_exclude_windows.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# SPDX-FileCopyrightText: 2020 Intel Corporation +# +# SPDX-License-Identifier: MIT + +#shellcheck disable=SC2010 +LATEST_VERSION=$(ls -1 "C:\Program Files (x86)\Intel\oneAPI\compiler" | grep -v latest | sort | tail -1) + +rm -rf "C:\Program Files (x86)\Intel\oneAPI\compiler\'$LATEST_VERSION'\windows\compiler\lib\ia32_win" +rm -rf "C:\Program Files (x86)\Intel\oneAPI\compiler\'$LATEST_VERSION'\windows\bin\intel64_ia32" +rm -rf "C:\Program Files (x86)\Intel\oneAPI\compiler\'$LATEST_VERSION'\windows\lib\emu" +rm -rf "C:\Program Files (x86)\Intel\oneAPI\compiler\'$LATEST_VERSION'\windows\lib\oclfpga" +rm -rf "C:\Program Files (x86)\Intel\oneAPI\compiler\'$LATEST_VERSION'\windows\lib\ocloc" +rm -rf "C:\Program Files (x86)\Intel\oneAPI\compiler\'$LATEST_VERSION'\windows\lib\x86"