-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exclude tests from ALL target. (#147)
* Exclude tests from ALL target. * Build tests in CI. * Ignore tests failing in the CI.
- Loading branch information
Showing
3 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,28 @@ | ||
name: Build UIBase | ||
|
||
on: | ||
push: | ||
branches: master | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Build UI Base | ||
id: build-uibase | ||
uses: ModOrganizer2/build-with-mob-action@master | ||
with: | ||
mo2-third-parties: gtest spdlog boost | ||
mo2-dependencies: cmake_common | ||
- name: Build UI Base Tests | ||
run: cmake --build vsbuild --config RelWithDebInfo -j4 --target uibase-tests | ||
working-directory: ${{ steps.build-uibase.outputs.working-directory }} | ||
|
||
- name: Test UI Base | ||
# there are missing stuffs in the CI currently that fails the test, to be | ||
# investigated | ||
continue-on-error: true | ||
run: ctest --test-dir vsbuild -C RelWithDebInfo --output-on-failure | ||
working-directory: ${{ steps.build-uibase.outputs.working-directory }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
|
||
add_executable(uibase_tests) | ||
mo2_configure_tests(uibase_tests | ||
add_executable(uibase-tests EXCLUDE_FROM_ALL) | ||
mo2_configure_tests(uibase-tests | ||
WARNINGS OFF DEPENDS uibase) |