2022-07-07 15:15:05 +01:00
|
|
|
clone:
|
|
|
|
git:
|
|
|
|
image: woodpeckerci/plugin-git:latest
|
2022-07-07 14:34:42 +01:00
|
|
|
settings:
|
2022-07-07 15:15:05 +01:00
|
|
|
path: MagicStorageVoidBag
|
2022-07-07 14:34:42 +01:00
|
|
|
|
2022-07-07 15:15:05 +01:00
|
|
|
pipeline:
|
2022-07-07 17:17:43 +01:00
|
|
|
fetch-deps:
|
|
|
|
image: alpine/git:latest
|
|
|
|
commands:
|
|
|
|
- git clone https://github.com/blushiemagic/MagicStorage.git
|
|
|
|
- wget https://github.com/tModLoader/tModLoader/releases/latest/download/tModLoader.zip
|
2022-07-07 17:55:45 +01:00
|
|
|
- unzip -q tModLoader.zip -d tModLoader
|
2022-07-07 17:17:43 +01:00
|
|
|
- rm tModLoader.zip
|
2022-07-07 17:55:45 +01:00
|
|
|
- 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
|
|
|
|
|
2022-07-07 13:44:56 +01:00
|
|
|
build:
|
2022-07-07 17:55:45 +01:00
|
|
|
image: jackbondpreston/fna-alpine
|
2022-07-07 13:44:56 +01:00
|
|
|
commands:
|
2022-07-07 17:55:45 +01:00
|
|
|
- |
|
|
|
|
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 .
|
2022-07-07 13:44:56 +01:00
|
|
|
- ls
|