Compare commits
No commits in common. "a4f68c9959d2df43e044e8478d599079110e162f" and "c6a4891ad426aa138b79ed1d494d7094e124f8a8" have entirely different histories.
a4f68c9959
...
c6a4891ad4
6 changed files with 2 additions and 54 deletions
|
@ -2,7 +2,7 @@ name: Run UnitTests
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'conan'
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-run-tests:
|
build-and-run-tests:
|
|
@ -2,7 +2,7 @@ name: Run UnitTests
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'conan'
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-run-tests:
|
build-and-run-tests:
|
|
@ -1,25 +0,0 @@
|
||||||
cmake_minimum_required(VERSION 3.7)
|
|
||||||
project(UDPC_NetworkTest C)
|
|
||||||
|
|
||||||
set(UDPC_NetworkTest_SOURCES
|
|
||||||
src/UDPC_NetworkTest.c
|
|
||||||
)
|
|
||||||
|
|
||||||
add_compile_options(
|
|
||||||
-Wall -Wextra -Wpedantic -Wno-missing-braces
|
|
||||||
$<$<COMPILE_LANGUAGE:CXX>:-Weffc++>
|
|
||||||
$<$<CONFIG:DEBUG>:-Og>
|
|
||||||
)
|
|
||||||
|
|
||||||
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
|
||||||
message(STATUS "Setting build type to 'Debug', none was specified.")
|
|
||||||
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build." FORCE)
|
|
||||||
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
find_package(udpc CONFIG REQUIRED)
|
|
||||||
|
|
||||||
add_executable(UDPC_NetworkTest
|
|
||||||
${UDPC_NetworkTest_SOURCES}
|
|
||||||
)
|
|
||||||
target_link_libraries(UDPC_NetworkTest udpc::udpc)
|
|
|
@ -1,9 +0,0 @@
|
||||||
[requires]
|
|
||||||
udpc/1.0
|
|
||||||
|
|
||||||
[generators]
|
|
||||||
CMakeDeps
|
|
||||||
CMakeToolchain
|
|
||||||
|
|
||||||
[options]
|
|
||||||
udpc*:shared=True
|
|
|
@ -1,17 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
cd "$(dirname "$0")"
|
|
||||||
|
|
||||||
set -ve
|
|
||||||
|
|
||||||
if ! [[ -e "${HOME}/.conan2/profiles/default" ]]; then
|
|
||||||
conan profile detect
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! grep stephens_forgejo "${HOME}/.conan2/remotes.json" >&/dev/null; then
|
|
||||||
conan remote add stephens_forgejo "https://git.seodisparate.com/api/packages/stephenseo/conan"
|
|
||||||
fi
|
|
||||||
|
|
||||||
conan install . -r stephens_forgejo -r conancenter --output-folder=buildConan --build=missing
|
|
||||||
cmake -S . -B buildConan -DCMAKE_TOOLCHAIN_FILE=buildConan/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
|
|
||||||
cmake --build buildConan
|
|
|
@ -1 +0,0 @@
|
||||||
../../src/test/UDPC_NetworkTest.c
|
|
Loading…
Reference in a new issue