From 95ac30070823bea03da6610db2b0684fd96e1f7e Mon Sep 17 00:00:00 2001 From: sappho Date: Fri, 14 Jul 2023 01:55:26 -0400 Subject: add ci scripts, update makefile --- ci/_docker_script.sh | 10 ++++++++++ ci/build.sh | 22 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 ci/_docker_script.sh create mode 100644 ci/build.sh (limited to 'ci') 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 \ -- cgit v1.2.3