Skip to content

Commit

Permalink
Test windows findpackage
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Feb 13, 2024
1 parent 5b35649 commit 3f5e3a7
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/cmake-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,24 @@ jobs:
cmake .. -DCMAKE_BUILD_TYPE=Debug -DLIBASSERT_TAG="$tag" -DCMAKE_BUILD_TYPE=g++ "-GUnix Makefiles"
make
.\main.exe
test-mingw-findpackage:
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
- name: test
run: |
$tag=$(git rev-parse --abbrev-ref HEAD)
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_BUILD_TYPE=g++ "-GUnix Makefiles" -DCMAKE_INSTALL_PREFIX=C:/foo
make -j install
cd ../..
cp -Recurse libassert/tests/findpackage-integration .
mkdir findpackage-integration/build
cd findpackage-integration/build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_BUILD_TYPE=g++ "-GUnix Makefiles"
make
./main.exe
test-mingw-add_subdirectory:
runs-on: windows-2022
steps:
Expand Down Expand Up @@ -144,6 +162,25 @@ jobs:
cmake .. -DCMAKE_BUILD_TYPE=Debug -DLIBASSERT_TAG="$tag"
msbuild demo_project.sln
.\Debug\main.exe
test-windows-findpackage:
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
- name: test
run: |
$tag=$(git rev-parse --abbrev-ref HEAD)
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=C:/foo
msbuild .\libassert.sln
msbuild INSTALL.vcxproj
cd ../..
cp -Recurse libassert/tests/findpackage-integration .
mkdir findpackage-integration/build
cd findpackage-integration/build
cmake .. -DCMAKE_BUILD_TYPE=Debug
msbuild demo_project.sln
.\Debug\main.exe
test-windows-add_subdirectory:
runs-on: windows-2022
steps:
Expand Down

0 comments on commit 3f5e3a7

Please sign in to comment.