mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-08 22:25:42 +12:00
commit
2cb9e7883c
2 changed files with 88 additions and 0 deletions
83
.github/workflows/dotnet.yml
vendored
Normal file
83
.github/workflows/dotnet.yml
vendored
Normal file
|
@ -0,0 +1,83 @@
|
||||||
|
name: .NET
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ./Horse Isle Server
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup .NET
|
||||||
|
uses: actions/setup-dotnet@v1
|
||||||
|
with:
|
||||||
|
dotnet-version: 5.0.x
|
||||||
|
|
||||||
|
- name: Restore dependencies
|
||||||
|
run: dotnet restore
|
||||||
|
|
||||||
|
|
||||||
|
- name: Build win-64
|
||||||
|
continue-on-error: true
|
||||||
|
run: dotnet publish -p:PublishProfile=Win64.pubxml
|
||||||
|
|
||||||
|
- name: Build win-32
|
||||||
|
continue-on-error: true
|
||||||
|
run: dotnet publish -p:PublishProfile=Win32.pubxml
|
||||||
|
|
||||||
|
|
||||||
|
- name: Build linux-64
|
||||||
|
continue-on-error: true
|
||||||
|
run: dotnet publish -p:PublishProfile=Linux64.pubxml
|
||||||
|
|
||||||
|
- name: Build linux-arm
|
||||||
|
continue-on-error: true
|
||||||
|
run: dotnet publish -p:PublishProfile=LinuxARM.pubxml
|
||||||
|
|
||||||
|
- name: Build linux-arm64
|
||||||
|
continue-on-error: true
|
||||||
|
run: dotnet publish -p:PublishProfile=LinuxARM64.pubxml
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- name: upload linux-64
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: linux-x64
|
||||||
|
path: Horse Isle Server/HorseIsleServer/bin/x64/Linux/net5.0/linux-x64/publish/
|
||||||
|
|
||||||
|
- name: upload linux-arm
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: linux-arm
|
||||||
|
path: Horse Isle Server/HorseIsleServer/bin/ARM/Linux/net5.0/linux-arm/publish/
|
||||||
|
|
||||||
|
- name: upload linux-arm64
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: linux-arm64
|
||||||
|
path: Horse Isle Server/HorseIsleServer/bin/ARM64/Linux/net5.0/linux-arm64/publish/
|
||||||
|
|
||||||
|
|
||||||
|
- name: upload-win64
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: win-64
|
||||||
|
path: Horse Isle Server/HorseIsleServer/bin/Windows/net5.0/win-x64/publish/
|
||||||
|
|
||||||
|
- name: upload-win32
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: win-32
|
||||||
|
path: Horse Isle Server/HorseIsleServer/bin/x86/Windows/net5.0/win-x86/publish\/
|
||||||
|
|
|
@ -75,4 +75,9 @@
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<PlatformTarget>ARM64</PlatformTarget>
|
<PlatformTarget>ARM64</PlatformTarget>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='All|Any CPU'">
|
||||||
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
|
<RuntimeIdentifiers>win-x86;win-x64;win-arm;win-arm64;linux-x64;linux-arm;linux-arm64</RuntimeIdentifiers>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
Loading…
Add table
Reference in a new issue