Skip to content

Commit 4410800

Browse files
committed
vcpkg: test package with unit tests
1 parent 716d636 commit 4410800

4 files changed

Lines changed: 8 additions & 22 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,8 @@ jobs:
577577
run: |
578578
cd build/vcpkg/test
579579
cmake .
580-
make
581-
./test
580+
cmake --build . --parallel
581+
cmake --build . --target test
582582
- name: upload vcpkg logs to artifacts
583583
if: always() # even if previous steps fail, this one needs to be run
584584
uses: actions/upload-artifact@v4
@@ -601,6 +601,8 @@ jobs:
601601
steps:
602602
- name: git clone
603603
uses: actions/checkout@v4
604+
with:
605+
submodules: true
604606
- name: get myci scripts
605607
uses: actions/checkout@v4
606608
with:
@@ -622,7 +624,7 @@ jobs:
622624
cd build/vcpkg/test
623625
cmake .
624626
cmake --build . --parallel
625-
./Debug/test.exe
627+
cmake --build . --target test
626628
- name: upload vcpkg logs to artifacts
627629
if: always() # even if previous steps fail, this one needs to be run
628630
uses: actions/upload-artifact@v4

build/vcpkg/test/CMakeLists.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,4 @@ project(test)
99
find_package(myci CONFIG REQUIRED)
1010
find_package(utki CONFIG REQUIRED)
1111

12-
add_executable(test main.cpp)
13-
14-
target_link_libraries(
15-
test
16-
PRIVATE
17-
utki::utki
18-
)
12+
include(../../cmake/unit_tests.cmake)

build/vcpkg/test/main.cpp

Lines changed: 0 additions & 11 deletions
This file was deleted.

build/vcpkg/test/vcpkg.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"dependencies": [
3+
"myci",
34
"utki"
45
]
5-
}
6+
}

0 commit comments

Comments
 (0)