ci: build things

This commit is contained in:
Jack Bond-Preston 2022-07-07 17:55:45 +01:00
parent ed4ab8f07d
commit 13e8f9a8b8
Signed by: jack
GPG Key ID: 010071F1482BA852

View File

@ -10,9 +10,26 @@ pipeline:
commands: commands:
- git clone https://github.com/blushiemagic/MagicStorage.git - git clone https://github.com/blushiemagic/MagicStorage.git
- wget https://github.com/tModLoader/tModLoader/releases/latest/download/tModLoader.zip - wget https://github.com/tModLoader/tModLoader/releases/latest/download/tModLoader.zip
- unzip tModLoader.zip -d tModLoader - unzip -q tModLoader.zip -d tModLoader
- rm tModLoader.zip - rm tModLoader.zip
- ln -sf $CI_WORKSPACE/tModLoader/Libraries/Native/Linux/libSDL2-2.0.so.0 $CI_WORKSPACE/tModLoader/Libraries/Native/Linux/libSDL2.so
- >
echo "<Project ToolsVersion=\"14.0\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">
<Import Project=\"$CI_WORKSPACE/tModLoader/tMLMod.targets\" />
</Project>" > tModLoader.targets
build: build:
image: mcr.microsoft.com/dotnet/sdk:latest image: jackbondpreston/fna-alpine
commands: commands:
- |
echo "Shell: $SHELL"
echo "CI_WORKSPACE: $CI_WORKSPACE"
- cat tModLoader.targets
- cd MagicStorage && dotnet build -c Release || true
- cp bin/Release/net6.0/MagicStorage.dll .
- cd $CI_WORKSPACE
- cd MagicStorageVoidBag && dotnet build -c Release || true
- cp bin/Release/net6.0/MagicStorageVoidBag.dll .
- cd $CI_WORKSPACE
- cp ~/.local/share/Terraria/tModLoader/Mods/*.tmod .
- ls - ls