summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-07 21:25:56 +0000
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-07 21:25:56 +0000
commit0ca05c54dd814f294617eda286ef175f01baa542 (patch)
treef7d92175688e8fe8e95cbb2e87b232fbc50fe83f
parent386fdd02304d1ef231db8ce7ec90b0dc8227d739 (diff)
downloadmana-0ca05c54dd814f294617eda286ef175f01baa542.tar.gz
mana-0ca05c54dd814f294617eda286ef175f01baa542.tar.bz2
mana-0ca05c54dd814f294617eda286ef175f01baa542.tar.xz
mana-0ca05c54dd814f294617eda286ef175f01baa542.zip
Introduce .gitlab-ci.yml
This just checks that the client compiles on Ubuntu for now. Also fixed a PhysicsFS linker issue introduced in ffa8ea13fbf50ad59d9fc4cea71b9aec4aca8bac...
-rw-r--r--.gitlab-ci.yml27
-rw-r--r--src/CMakeLists.txt3
2 files changed, 28 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..915a8151
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,27 @@
+stages:
+ - build
+
+default:
+ image: ubuntu:22.04
+
+ubuntu-build:
+ stage: build
+ script:
+ - apt update
+ - apt install -y
+ build-essential
+ cmake
+ gettext
+ libcurl4-openssl-dev
+ libguichan-dev
+ libphysfs-dev
+ libpng-dev
+ libsdl2-dev
+ libsdl2-gfx-dev
+ libsdl2-image-dev
+ libsdl2-mixer-dev
+ libsdl2-net-dev
+ libsdl2-ttf-dev
+ libxml2-dev
+ - cmake .
+ - cmake --build . --parallel
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f2ba1221..c24bd350 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -640,11 +640,10 @@ TARGET_LINK_LIBRARIES(mana
${INTERNAL_LIBRARIES}
${SDL2_LIBRARIES}
${PNG_LIBRARIES}
- ${PHYSFS_LIBRARY}
+ ${PHYSFS_LIBRARIES}
${CURL_LIBRARIES}
${LIBXML2_LIBRARIES}
${GUICHAN_LIBRARIES}
- ${X11_LIBRARIES}
${OPENGL_LIBRARIES}
${LIBINTL_LIBRARIES}
${EXTRA_LIBRARIES})