Compare commits

...

3 Commits

Author SHA1 Message Date
Mike Nolan 5bd8cd56da 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
2024-07-07 19:40:27 -05:00
Mike Nolan bf6a7d2c18 Check whether it compiles on push 2024-07-07 19:35:42 -05:00
Mike Nolan 47a2c10da3 Check whether it compiles on push 2024-07-07 19:30:14 -05:00
4 changed files with 6 additions and 4 deletions

View File

@ -7,4 +7,4 @@ steps:
commands:
- apt update -y
- apt install -y make zip tar
- make
- make test

View File

@ -7,7 +7,6 @@ steps:
commands:
- apt update -y
- apt install -y make zip tar
- make
- bash publish.sh
volumes:
- /mnt/20TB/Artifacts:/deploy_dir

View File

@ -1,7 +1,9 @@
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
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
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 .
publish/%:
mkdir -p $@ || true && cd "TYTDLite.ServerCli" && dotnet publish -c Release -o ../$@ --self-contained -p:PublishReadyToRun=true -p:PublishSingleFile=true -r $(notdir $@)
test:
cd TYTDLite.ServerCli && dotnet build && cd ../TYTDLite.ServerNetFwMono/ && dotnet build

View File

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