Skip to content

Commit

Permalink
Try to disable defender
Browse files Browse the repository at this point in the history
  • Loading branch information
roigcarlo committed Oct 7, 2024
1 parent 1cd8145 commit f0546c9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:
shell: bash
run: python3 kratos/python_scripts/testing/ci_utilities.py

- name: Disable Defender
shell: pwdh
run: |
Set-MpPreference -DisableRealtimeMonitoring $true
- name: Download boost
run: |
$url = "https://archives.boost.io/release/1.80.0/source/boost_1_80_0.tar.gz"
Expand All @@ -59,6 +64,7 @@ jobs:
- name: Running python tests
shell: cmd
run: |
Set-MpPreference -DisableRealtimeMonitoring $true
set PYTHONPATH=%PYTHONPATH%;%GITHUB_WORKSPACE%/bin/%KRATOS_BUILD_TYPE%
set PATH=%PATH%;%GITHUB_WORKSPACE%/bin/%KRATOS_BUILD_TYPE%/libs
python kratos/python_scripts/testing/run_python_tests.py -v 2 -l nightly -c python
Expand Down Expand Up @@ -86,6 +92,11 @@ jobs:
7z.exe x "$env:TEMP\boost.tar.gz" -o"$env:TEMP\boostArchive" -y | Out-Null
7z.exe x "$env:TEMP\boostArchive" -o"$env:TEMP\boost" -y | Out-Null
- name: Disable Defender
shell: pwdh
run: |
Set-MpPreference -DisableRealtimeMonitoring $true
- name: Installing dependencies
shell: cmd
run: |
Expand Down Expand Up @@ -118,7 +129,8 @@ jobs:
-DBOOST_ROOT="%TEMP%\boost" ^
-DCMAKE_CXX_FLAGS="/Od /we4661 /we4804 /WX /wd4996" ^
-DKRATOS_BUILD_TESTING=OFF ^
-DKRATOS_USE_PCH=OFF || goto :error
-DKRATOS_USE_PCH=OFF ^
-DFORCE_LOCAL_ZLIB_COMPILATION=ON || goto :error
cmake --build "%KRATOS_BUILD%\%KRATOS_BUILD_TYPE%" --target all_build -- /property:configuration=%KRATOS_BUILD_TYPE% /p:Platform=x64 || goto :error
cmake --build "%KRATOS_BUILD%\%KRATOS_BUILD_TYPE%" --target install -- /property:configuration=%KRATOS_BUILD_TYPE% /p:Platform=x64 || goto :error
Expand All @@ -130,8 +142,9 @@ jobs:
exit /b %errorlevel%
- name: Running python tests
shell: cmd
shell: pwdh
run: |
Set-MpPreference -DisableRealtimeMonitoring $true
set PYTHONPATH=%PYTHONPATH%;%GITHUB_WORKSPACE%/bin/%KRATOS_BUILD_TYPE%
set PATH=%PATH%;%GITHUB_WORKSPACE%/bin/%KRATOS_BUILD_TYPE%/libs
python kratos/python_scripts/testing/run_python_tests.py -v 2 -l nightly -c python
1 change: 1 addition & 0 deletions .github/workflows/configure.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ cmake ^
-DBOOST_ROOT="%TEMP%\boost" ^
-DCMAKE_CXX_FLAGS="/Od /we4661 /we4804 /WX /wd4996" ^
-DKRATOS_BUILD_TESTING=OFF ^
-DFORCE_LOCAL_ZLIB_COMPILATION=ON ^
-DCMAKE_UNITY_BUILD=ON || goto :error

cmake --build "%KRATOS_BUILD%\%KRATOS_BUILD_TYPE%" --target all_build -- /property:configuration=%KRATOS_BUILD_TYPE% /p:Platform=x64 || goto :error
Expand Down

0 comments on commit f0546c9

Please sign in to comment.