aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsappho <sappho@sappho.io>2023-07-14 01:55:26 -0400
committersappho <sappho@sappho.io>2023-07-14 01:55:26 -0400
commit95ac30070823bea03da6610db2b0684fd96e1f7e (patch)
tree7e2da9edf1ffba6a9d9cd3edcd7d0337d1b464d8
parent6e0de1be31d958156117e03e3326622cece1cea5 (diff)
add ci scripts, update makefile
-rw-r--r--Makefile4
-rw-r--r--ci/_docker_script.sh10
-rw-r--r--ci/build.sh22
3 files changed, 34 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ad1d13e..58a909a 100644
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,10 @@
# Makefile written by David "BAILOPAN" Anderson
#SMSDK = ../..
-SMSDK = ../alliedmodders/sourcemod
+SMSDK = ./sm-1.11
# SRCDS_BASE = ~/srcds
# MMSOURCE17 = ../../../mmsource-central
-MMSOURCE17 = ../alliedmodders/mmsource-1.12
+MMSOURCE17 = ./mm-1.11
#####################################
### EDIT BELOW FOR OTHER PROJECTS ###
diff --git a/ci/_docker_script.sh b/ci/_docker_script.sh
new file mode 100644
index 0000000..ba5065d
--- /dev/null
+++ b/ci/_docker_script.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+cd /mnt/curl/
+git config --global --add safe.directory "*"
+rm -rf ./sm-1.11
+git clone https://github.com/alliedmodders/sourcemod --branch 1.11-dev sm-1.11 --recursive
+rm -rf ./mm-1.11
+git clone https://github.com/alliedmodders/metamod-source --branch 1.11-dev mm-1.11 --recursive
+make clean
+make
diff --git a/ci/build.sh b/ci/build.sh
new file mode 100644
index 0000000..1de802e
--- /dev/null
+++ b/ci/build.sh
@@ -0,0 +1,22 @@
+sdfasd#!/bin/bash
+
+# we do this so that we can be agnostic about where we're invoked from
+# meaning you can exec this script anywhere and it should work the same
+thisiswhereiam=${BASH_SOURCE[0]}
+# this should be /whatever/directory/structure/Open-Fortress-Source
+script_folder=$( cd -- "$( dirname -- "${thisiswhereiam}" )" &> /dev/null && pwd )
+# this should be /whatever/directory/structure/[sdkmod-source]/build
+build_dir="build"
+
+echo ${thisiswhereiam}
+echo ${script_folder}
+docker run -it \
+--mount type=bind,source=${script_folder}/../,target=/mnt/curl \
+registry.gitlab.steamos.cloud/steamrt/sniper/sdk \
+bash
+#/mnt/curl/ci/_docker_script.sh
+
+
+
+#
+# debian:11-slim \