Test findpackage for msvc too
This commit is contained in:
parent
f972c43420
commit
8b8bd1b5df
29
.github/workflows/cmake-integration.yml
vendored
29
.github/workflows/cmake-integration.yml
vendored
@ -210,6 +210,35 @@ jobs:
|
|||||||
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCPPTRACE_TAG="$tag" -DBUILD_SHARED_LIBS=${{matrix.shared}}
|
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCPPTRACE_TAG="$tag" -DBUILD_SHARED_LIBS=${{matrix.shared}}
|
||||||
msbuild demo_project.sln
|
msbuild demo_project.sln
|
||||||
.\Debug\main.exe
|
.\Debug\main.exe
|
||||||
|
test-windows-findpackage:
|
||||||
|
runs-on: windows-2022
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
shared: [On, Off]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Enable Developer Command Prompt
|
||||||
|
uses: ilammy/msvc-dev-cmd@v1.10.0
|
||||||
|
- name: test
|
||||||
|
run: |
|
||||||
|
$tag=$(git rev-parse --abbrev-ref HEAD)
|
||||||
|
echo $tag
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCMAKE_INSTALL_PREFIX=C:/foo
|
||||||
|
msbuild cpptrace.sln
|
||||||
|
msbuild INSTALL.vcxproj
|
||||||
|
cd ../..
|
||||||
|
mv cpptrace/test/findpackage-integration .
|
||||||
|
mkdir findpackage-integration/build
|
||||||
|
cd findpackage-integration/build
|
||||||
|
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=C:/foo
|
||||||
|
msbuild demo_project.sln
|
||||||
|
if("${{matrix.shared}}" -eq "On") {
|
||||||
|
cp C:/foo/bin/cpptrace.dll .
|
||||||
|
}
|
||||||
|
./main
|
||||||
test-windows-add_subdirectory:
|
test-windows-add_subdirectory:
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user