Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorKai Blaschke <kai.blaschke@gdata.de>2024-02-18 13:55:01 +0100
committerKai Blaschke <kai.blaschke@kb-dev.net>2024-02-19 14:11:19 +0100
commitef82ae3aeb835290671f09ce12fabae25f914396 (patch)
treeff8586f994164f67d100f6b478ca607afa41bd57 /source
parente2251a0e8bab878b453debd9211e0ba34564d08c (diff)
Add GitHub Actions build workflows
Diffstat (limited to 'source')
-rw-r--r--source/CMakeLists.txt7
-rw-r--r--source/extern/CMakeLists.txt1
-rw-r--r--source/test/CMakeLists.txt3
-rw-r--r--source/vcpkg-configuration.json8
-rw-r--r--source/vcpkg.json11
5 files changed, 28 insertions, 2 deletions
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
index 18f3c45..5ff8eb5 100644
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -509,8 +509,11 @@ SET (STAR_GAME_INCLUDES
ADD_SUBDIRECTORY (game)
# Googletest based tests
-ENABLE_TESTING()
-ADD_SUBDIRECTORY (test)
+OPTION (BUILD_TESTING "Build test projects" OFF)
+IF (BUILD_TESTING)
+ ENABLE_TESTING()
+ ADD_SUBDIRECTORY (test)
+ENDIF()
# Starbound stand-alone server.
ADD_SUBDIRECTORY (server)
diff --git a/source/extern/CMakeLists.txt b/source/extern/CMakeLists.txt
index bc57870..624b837 100644
--- a/source/extern/CMakeLists.txt
+++ b/source/extern/CMakeLists.txt
@@ -9,6 +9,7 @@ SET (OPUS_FLOAT_APPROX ON)
SET (OPUS_STACK_PROTECTOR OFF)
SET (OPUS_NONTHREADSAFE_PSEUDOSTACK OFF)
SET (OPUS_USE_ALLOCA ON)
+SET (BUILD_TESTING OFF) # Skip Opus tests, these won't build because the tests don't honor OPUS_FLOAT_APPROX.
ADD_SUBDIRECTORY (opus)
IF (OPUS_NONTHREADSAFE_PSEUDOSTACK)
diff --git a/source/test/CMakeLists.txt b/source/test/CMakeLists.txt
index fdbea13..9c32a4f 100644
--- a/source/test/CMakeLists.txt
+++ b/source/test/CMakeLists.txt
@@ -83,3 +83,6 @@ ADD_EXECUTABLE (game_tests
${star_game_tests_SOURCES})
TARGET_LINK_LIBRARIES (game_tests ${STAR_EXT_LIBS})
ADD_TEST (NAME game_tests WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/game_tests)
+
+SET_TESTS_PROPERTIES(core_tests PROPERTIES
+ LABELS "NoAssets")
diff --git a/source/vcpkg-configuration.json b/source/vcpkg-configuration.json
new file mode 100644
index 0000000..a11399f
--- /dev/null
+++ b/source/vcpkg-configuration.json
@@ -0,0 +1,8 @@
+{
+ "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg-configuration.schema.json",
+ "default-registry": {
+ "kind": "git",
+ "baseline": "638b1588be3a265a9c7ad5b212cef72a1cad336a",
+ "repository": "https://github.com/microsoft/vcpkg"
+ }
+} \ No newline at end of file
diff --git a/source/vcpkg.json b/source/vcpkg.json
new file mode 100644
index 0000000..7b396a2
--- /dev/null
+++ b/source/vcpkg.json
@@ -0,0 +1,11 @@
+{
+ "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
+ "dependencies": [
+ "glew",
+ "sdl2",
+ "libvorbis",
+ "zlib",
+ "freetype",
+ "libpng"
+ ]
+} \ No newline at end of file