mirror of
https://github.com/boostorg/regex.git
synced 2025-07-30 04:27:22 +02:00
Add msvc module test.
This commit is contained in:
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -148,7 +148,7 @@ jobs:
|
|||||||
- name: Grab install script
|
- name: Grab install script
|
||||||
run: wget https://apt.llvm.org/llvm.sh && chmod u+x llvm.sh
|
run: wget https://apt.llvm.org/llvm.sh && chmod u+x llvm.sh
|
||||||
- name: Install clang 18 packages
|
- name: Install clang 18 packages
|
||||||
run: sudo ./llvm.sh 19 && clang++-19 --version
|
run: sudo ./llvm.sh 18 && clang++-18 --version
|
||||||
- name: Checkout main boost
|
- name: Checkout main boost
|
||||||
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
|
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
|
||||||
- name: Update tools/boostdep
|
- name: Update tools/boostdep
|
||||||
@ -166,6 +166,9 @@ jobs:
|
|||||||
- name: Generate headers
|
- name: Generate headers
|
||||||
run: ./b2 headers
|
run: ./b2 headers
|
||||||
working-directory: ../boost-root
|
working-directory: ../boost-root
|
||||||
|
- name: Test Config
|
||||||
|
run: CXXFLAGS=clang++-18 ./config/clang.sh ./config/test_has_module_support.cpp ./config/has_module_support.cpp has_module_support
|
||||||
|
working-directory: ../boost-root/libs/regex/test/module
|
||||||
- name: Test
|
- name: Test
|
||||||
run: CXXFLAGS=clang++-18 ./test.sh ./config/clang.sh
|
run: CXXFLAGS=clang++-18 ./test.sh ./config/clang.sh
|
||||||
working-directory: ../boost-root/libs/regex/test/module
|
working-directory: ../boost-root/libs/regex/test/module
|
||||||
@ -399,6 +402,9 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
run: ..\..\..\b2 --hash %ARGS%
|
run: ..\..\..\b2 --hash %ARGS%
|
||||||
working-directory: ../boost-root/libs/regex/test
|
working-directory: ../boost-root/libs/regex/test
|
||||||
|
- name: Module Test
|
||||||
|
run: msvc_test.bat
|
||||||
|
working-directory: ../boost-root/libs/regex/test/module
|
||||||
ubuntu-cmake-install:
|
ubuntu-cmake-install:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
|
8
test/module/msvc_test.bat
Normal file
8
test/module/msvc_test.bat
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
REM Basic command line to build everything with msvc:
|
||||||
|
|
||||||
|
cl /std:c++latest /EHsc /nologo /W4 /c "%VCToolsInstallDir%\modules\std.ixx"
|
||||||
|
cl /std:c++latest /EHsc /nologo /W4 /c /interface /I ..\..\..\.. ..\..\module\regex.cxx
|
||||||
|
|
||||||
|
for %%f in (*.cpp) do (
|
||||||
|
cl /std:c++latest /EHsc /nologo /W4 /I ..\..\..\.. %%f std.obj regex.obj
|
||||||
|
)
|
Reference in New Issue
Block a user