From 09a789302197c9815101338bb078e68a67bdf240 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 29 Dec 2022 22:01:07 -0800 Subject: [PATCH] Try to get better at artifacts --- appveyor.yml | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 079c7726..9edb50d6 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -29,17 +29,24 @@ before_build: # build step build_script: - cmd: dotnet restore - # .NET Framework 4.8 - cmd: dotnet build Test\Test.csproj --framework net48 - # .NET 6.0, Windows x86 - cmd: dotnet publish Test\Test.csproj --framework net6.0 --runtime win-x86 --self-contained true -p:PublishSingleFile=true - # .NET 6.0, Windows x64 - cmd: dotnet publish Test\Test.csproj --framework net6.0 --runtime win-x64 --self-contained true -p:PublishSingleFile=true - # .NET 6.0, Linux x64 - cmd: dotnet publish Test\Test.csproj --framework net6.0 --runtime linux-x64 --self-contained true -p:PublishSingleFile=true - # .NET 6.0, OSX x64 - cmd: dotnet publish Test\Test.csproj --framework net6.0 --runtime osx-x64 --self-contained true -p:PublishSingleFile=true +# post-build script + - cmd: cd %APPVEYOR_BUILD_FOLDER%\Test\bin\Debug\net48 + - cmd: 7z a -tzip %APPVEYOR_BUILD_FOLDER%\BurnOutSharp_net48.zip * + - cmd: cd %APPVEYOR_BUILD_FOLDER%\Test\bin\Debug\net6.0\win-x86\publish\ + - cmd: 7z a -tzip %APPVEYOR_BUILD_FOLDER%\BurnOutSharp_net60_win-x86.zip * + - cmd: cd %APPVEYOR_BUILD_FOLDER%\Test\bin\Debug\net6.0\win-x64\publish\ + - cmd: 7z a -tzip %APPVEYOR_BUILD_FOLDER%\BurnOutSharp_net60_win-x64.zip * + - cmd: cd %APPVEYOR_BUILD_FOLDER%\Test\bin\Debug\net6.0\linux-x64\publish\ + - cmd: 7z a -tzip %APPVEYOR_BUILD_FOLDER%\BurnOutSharp_net60_linux-x64.zip * + - cmd: cd %APPVEYOR_BUILD_FOLDER%\Test\bin\Debug\net6.0\osx-x64\publish\ + - cmd: 7z a -tzip %APPVEYOR_BUILD_FOLDER%\BurnOutSharp_net60_osx-x64.zip * + # success/failure tracking on_success: - ps: Invoke-RestMethod https://raw.githubusercontent.com/DiscordHooks/appveyor-discord-webhook/master/send.ps1 -o send.ps1 @@ -50,18 +57,13 @@ on_failure: # artifact linking artifacts: -- path: Test\bin\Debug\net48\* +- path: BurnOutSharp_net48.zip name: BurnOutSharp (.NET Framework 4.8) - type: zip -- path: Test\bin\Debug\net6.0\win-x86\publish\* +- path: BurnOutSharp_net60_win-x86.zip name: BurnOutSharp (.NET 6.0, Windows x86) - type: zip -- path: Test\bin\Debug\net6.0\win-x64\publish\* +- path: BurnOutSharp_net60_win-x64.zip name: BurnOutSharp (.NET 6.0, Windows x64) - type: zip -- path: Test\bin\Debug\net6.0\linux-x64\publish\* +- path: BurnOutSharp_net60_linux-x64.zip name: BurnOutSharp (.NET 6.0, Linux x64) - type: zip -- path: Test\bin\Debug\net6.0\osx-x64\publish\* +- path: BurnOutSharp_net60_osx-x64.zip name: BurnOutSharp (.NET 6.0, OSX x64) - type: zip \ No newline at end of file