This commit is contained in:
parent
6eeaa88776
commit
9b2fc744dd
59
.drone.yml
Normal file
59
.drone.yml
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: build
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build-win-x64
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:5.0
|
||||||
|
commands:
|
||||||
|
- dotnet restore
|
||||||
|
- dotnet publish -c release -r win-x64 --self-contained true --no-restore -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true
|
||||||
|
|
||||||
|
- name: build-linux-x64
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:5.0
|
||||||
|
commands:
|
||||||
|
- dotnet restore
|
||||||
|
- dotnet publish -c release -r linux-x64 --self-contained true --no-restore -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true
|
||||||
|
|
||||||
|
- name: build-linux-armhf
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:5.0
|
||||||
|
commands:
|
||||||
|
- dotnet restore
|
||||||
|
- dotnet publish -c release -r linux-arm --self-contained true --no-restore -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true
|
||||||
|
|
||||||
|
- name: build-linux-arm64
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:5.0
|
||||||
|
commands:
|
||||||
|
- dotnet restore
|
||||||
|
- dotnet publish -c release -r linux-arm64 --self-contained true --no-restore -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true
|
||||||
|
|
||||||
|
- name: build-osx-x64
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:5.0
|
||||||
|
commands:
|
||||||
|
- dotnet restore
|
||||||
|
- dotnet publish -c release -r osx-x64 --self-contained true --no-restore -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true
|
||||||
|
|
||||||
|
- name: collate
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:5.0
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
commands:
|
||||||
|
- mkdir -p build
|
||||||
|
- mv JackMail/bin/Release/net5.0/win-x64/publish/JackMail.exe build/JackMail_win-x64.exe
|
||||||
|
- mv JackMail/bin/Release/net5.0/linux-x64/publish/JackMail build/JackMail_linux-x64
|
||||||
|
- mv JackMail/bin/Release/net5.0/linux-arm/publish/JackMail build/JackMail_linux-arm
|
||||||
|
- mv JackMail/bin/Release/net5.0/linux-arm64/publish/JackMail build/JackMail_linux-arm64
|
||||||
|
- mv JackMail/bin/Release/net5.0/osx-x64/publish/JackMail build/JackMail_osx-x64
|
||||||
|
|
||||||
|
- name: publish
|
||||||
|
image: plugins/gitea-release
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
settings:
|
||||||
|
base_url: https://git.jacknet.io
|
||||||
|
api_key:
|
||||||
|
from_secret: gitea_token
|
||||||
|
files:
|
||||||
|
- build/JackMail_*
|
@ -5,6 +5,11 @@ VisualStudioVersion = 16.0.808.3
|
|||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JackMail", "JackMail\JackMail.csproj", "{970B9ABF-A628-4804-B7C7-257BC0DF1B56}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JackMail", "JackMail\JackMail.csproj", "{970B9ABF-A628-4804-B7C7-257BC0DF1B56}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{EC7D600D-2AF6-4D5E-9493-D1658D642D94}"
|
||||||
|
ProjectSection(SolutionItems) = preProject
|
||||||
|
.drone.yml = .drone.yml
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net5.0</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
|
<RuntimeIdentifiers>win-x64;linux-x64;linux-arm;linux-arm64;osx-x64</RuntimeIdentifiers>
|
||||||
<UserSecretsId>dotnet-JackMail-3363D956-FACF-45AF-9B24-53666388FBC1</UserSecretsId>
|
<UserSecretsId>dotnet-JackMail-3363D956-FACF-45AF-9B24-53666388FBC1</UserSecretsId>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user