Check whether it compiles on push
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/deploy Pipeline was successful Details
ci/woodpecker/tag/build Pipeline was successful Details
ci/woodpecker/tag/deploy Pipeline was successful Details

This commit is contained in:
Mike Nolan 2024-07-07 19:40:27 -05:00
parent bf6a7d2c18
commit 5bd8cd56da
2 changed files with 7 additions and 8 deletions

View File

@ -1,11 +1,9 @@
PUBLISH:= publish all: publish/mono publish/linux-x64 publish/linux-arm publish/linux-arm64 publish/win-x86 publish/win-x64 publish/win-arm64 publish/osx-x64 publish/osx-arm64
all: $(PUBLISH)/linux-x64 $(PUBLISH)/linux-arm $(PUBLISH)/linux-arm64 $(PUBLISH)/win-x86 $(PUBLISH)/win-x64 $(PUBLISH)/win-arm64 $(PUBLISH)/osx-x64 $(PUBLISH)/osx-arm64 $(PUBLISH)/mono
$(PUBLISH)/mono: publish/mono:
mkdir -p $(PUBLISH)/mono || true && cd "TYTDLite.ServerNetFwMono" && dotnet $(PUBLISH) -c Release -o ../$(PUBLISH)/mono && cd ../$(PUBLISH)/mono && tar cvzf ../mono.tar.gz . && zip -r ../mono.zip . && rm -r * && mv ../mono.tar.gz . && mv ../mono.zip . mkdir -p publish/mono || true && cd "TYTDLite.ServerNetFwMono" && dotnet publish -c Release -o ../publish/mono && cd ../publish/mono && tar cvzf ../mono.tar.gz . && zip -r ../mono.zip . && rm -r * && mv ../mono.tar.gz . && mv ../mono.zip .
$(PUBLISH)/%: publish/%:
mkdir -p $@ || true && cd "TYTDLite.ServerCli" && dotnet $(PUBLISH) -c Release -o ../$@ --self-contained -p:$(PUBLISH)ReadyToRun=true -p:$(PUBLISH)SingleFile=true -r $(notdir $@) mkdir -p $@ || true && cd "TYTDLite.ServerCli" && dotnet publish -c Release -o ../$@ --self-contained -p:PublishReadyToRun=true -p:PublishSingleFile=true -r $(notdir $@)
test: test:
cd TYTDLite.ServerCli && dotnet build && cd ../TYTDLite.ServerNetFwMono/ && dotnet build cd TYTDLite.ServerCli && dotnet build && cd ../TYTDLite.ServerNetFwMono/ && dotnet build

View File

@ -1,2 +1,3 @@
. /deploy_dir/setpath.sh . /deploy_dir/setpath.sh
make PUBLISH="$DEPLOY_DIR" ln -s "$DEPLOY_DIR" publish
make