Skip to content

Commit a3fb961

Browse files
committed
Add msvc 2022 asan run to CI
1 parent 1b8a991 commit a3fb961

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed

.github/workflows/wide_integer.yml

+26
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,32 @@ jobs:
563563
MSBuild -m wide_integer_vs2022.sln -p:useenv=true -p:Configuration=Release -p:Platform=x64 /t:Rebuild
564564
dir %cd%\x64\Release\wide_integer_vs2022.exe
565565
%cd%\x64\Release\wide_integer_vs2022.exe
566+
msvc-release-x64-vs2022-asan:
567+
runs-on: windows-2022
568+
steps:
569+
- uses: actions/checkout@v2
570+
with:
571+
fetch-depth: '0'
572+
- name: clone-submods-bootstrap-headers-boost-develop
573+
run: |
574+
git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
575+
cd ../boost-root
576+
git submodule update --init tools
577+
git submodule update --init libs/config
578+
git submodule update --init libs/multiprecision
579+
./bootstrap.bat
580+
./b2 headers
581+
- uses: actions/checkout@v1
582+
- uses: ilammy/msvc-dev-cmd@v1
583+
- name: msvc-release-x64-vs2022-asan
584+
shell: cmd
585+
working-directory: ./
586+
run: |
587+
set INCLUDE=%cd%;%cd%\..\boost-root;%INCLUDE%
588+
copy /Y .props\Directory.Build.props .
589+
MSBuild -m wide_integer_vs2022.sln -p:useenv=true -p:Configuration=Release -p:Platform=x64 /t:Rebuild
590+
dir %cd%\x64\Release\wide_integer_vs2022.exe
591+
%cd%\x64\Release\wide_integer_vs2022.exe
566592
mingw-winhost-x64:
567593
runs-on: windows-2019
568594
strategy:

.props/Directory.Build.props

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
<PropertyGroup>
3+
<EnableASAN>true</EnableASAN>
4+
</PropertyGroup>
5+
</Project>

wide_integer.vcxproj

+1
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@
242242
<None Include=".github\workflows\wide_integer.yml" />
243243
<None Include=".github\workflows\wide_integer_codecov.yml" />
244244
<None Include=".github\workflows\wide_integer_sonar.yml" />
245+
<None Include=".props\Directory.Build.props" />
245246
<None Include=".tidy\make\make_tidy_01_generic.gmk" />
246247
<None Include=".tidy\make\make_tidy_02_files.gmk" />
247248
<None Include=".tidy\make\make_tidy_03_flags.gmk" />

wide_integer.vcxproj.filters

+6
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
<Filter Include=".gcov\make">
4545
<UniqueIdentifier>{09bf1894-26c1-40a4-870e-f338f0940b7b}</UniqueIdentifier>
4646
</Filter>
47+
<Filter Include=".props">
48+
<UniqueIdentifier>{78812fa7-c747-46fb-861d-bb6cfe3070ab}</UniqueIdentifier>
49+
</Filter>
4750
</ItemGroup>
4851
<ItemGroup>
4952
<ClInclude Include="boost\multiprecision\uintwide_t_backend.hpp">
@@ -217,6 +220,9 @@
217220
<None Include=".github\workflows\wide_integer_codecov.yml">
218221
<Filter>.github\workflows</Filter>
219222
</None>
223+
<None Include=".props\Directory.Build.props">
224+
<Filter>.props</Filter>
225+
</None>
220226
</ItemGroup>
221227
<ItemGroup>
222228
<Text Include="examples\CMakeLists.txt">

0 commit comments

Comments
 (0)