Skip to content

Commit

Permalink
.github/workflows/windows.yml: fix for api validator
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframRhodium authored Jan 29, 2023
1 parent 881cb4f commit 93f9ee5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
# required for CMAKE_MSVC_RUNTIME_LIBRARY
- name: Patch target cmake version
run: |
python -c "f=open('cmake/developer_package/api_validator/api_validator.cmake','r+b');s=f.read();insert_str=b'set(UWP_API_VALIDATOR \"\")\n ';point=s.index(b'if(UWP_API_VALIDATOR)');s=s[:point]+insert_str+s[point:];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()"
Expand Down

0 comments on commit 93f9ee5

Please sign in to comment.