ci: mostly complete woodpecker CI
This commit is contained in:
commit
b62d537f4e
@ -1,11 +1,53 @@
|
|||||||
pipeline:
|
clone:
|
||||||
clone:
|
|
||||||
git:
|
git:
|
||||||
image: woodpeckerci/plugin-git
|
image: woodpeckerci/plugin-git:latest
|
||||||
settings:
|
settings:
|
||||||
- path: MagicStorageVoidBag
|
path: MagicStorageVoidBag
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
|
pipeline:
|
||||||
|
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
|
||||||
|
- unzip -q tModLoader.zip -d tModLoader
|
||||||
|
- 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
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: mcr.microsoft.com/dotnet/sdk
|
image: jackbondpreston/fna-alpine
|
||||||
commands:
|
commands:
|
||||||
- ls
|
- |
|
||||||
|
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
|
||||||
|
- mkdir release
|
||||||
|
- cp ~/.local/share/Terraria/tModLoader/Mods/MagicStorageVoidBag.tmod release/
|
||||||
|
- cp MagicStorageVoidBag/MagicStorageVoidBag.dll release/
|
||||||
|
- ls release
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
|
gitea-release:
|
||||||
|
image: plugins/gitea-release
|
||||||
|
settings:
|
||||||
|
api_key:
|
||||||
|
from_secret: gitea-api-key
|
||||||
|
base_url: https://git.jackbondpreston.me
|
||||||
|
files: release/*
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
@ -12,10 +12,10 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="MagicStorage">
|
<Reference Include="MagicStorage">
|
||||||
<HintPath>../Mod Libraries/MagicStorage.dll</HintPath>
|
<HintPath>../MagicStorage/MagicStorage.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="MagicStorageHooks">
|
<Reference Include="MagicStorageHooks">
|
||||||
<HintPath>lib\MagicStorageHooks.dll</HintPath>
|
<HintPath>lib/MagicStorageHooks.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
Loading…
Reference in New Issue
Block a user