Skip to content

Commit

Permalink
.github/workflows/windows.yml: fix patch for cmake version
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframRhodium authored Jun 19, 2022
1 parent 9126b3a commit 2a8ab79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
# required for CMAKE_MSVC_RUNTIME_LIBRARY
- name: Patch target cmake version
run: |
python -c "f=open('CMakeLists.txt','r+b');s=f.read();start_str=b'cmake_minimum_required(VERSION ';start=s.index(start_str);end=s.index(b')',start);s=s[:start]+start_str+b'3.17'+s[end:];f.seek(0);f.write(s);f.truncate();f.close()"
python -c "f=open('src/plugins/intel_gpu/thirdparty/onednn_gpu/CMakeLists.txt','r+b');s=f.read();start_str=b'cmake_minimum_required(VERSION ';start=s.index(start_str);end=s.index(b')',start);s=s[:start]+start_str+b'3.17'+s[end:];f.seek(0);f.write(s);f.truncate();f.close()"
python -c "f=open('CMakeLists.txt','r+b');s=f.read();start_str=b'cmake_minimum_required(VERSION ';start=s.rindex(start_str);end=s.index(b')',start);s=s[:start]+start_str+b'3.15'+s[end:];f.seek(0);f.write(s);f.truncate();f.close()"
python -c "f=open('src/plugins/intel_gpu/thirdparty/onednn_gpu/CMakeLists.txt','r+b');s=f.read();start_str=b'cmake_minimum_required(VERSION ';start=s.index(start_str);end=s.index(b')',start);s=s[:start]+start_str+b'3.15'+s[end:];f.seek(0);f.write(s);f.truncate();f.close()"
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
Expand Down

0 comments on commit 2a8ab79

Please sign in to comment.