This commit is contained in:
SilicaPi 2021-01-29 19:33:34 +13:00
commit e700a0dc99
4 changed files with 75 additions and 36 deletions

View file

@ -1,4 +1,4 @@
name: .NET
name: linux
on:
push:
@ -26,30 +26,27 @@ jobs:
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
continue-on-error: false
run: |
dotnet publish -p:PublishProfile=Linux64.pubxml
cp ../DataCollection/*.json "HorseIsleServer/bin/x64/Linux/net5.0/linux-x64/publish/"
cp ../DataCollection/*.MAP "HorseIsleServer/bin/x64/Linux/net5.0/linux-x64/publish/"
- name: Build linux-arm
continue-on-error: true
run: dotnet publish -p:PublishProfile=LinuxARM.pubxml
continue-on-error: false
run: |
dotnet publish -p:PublishProfile=LinuxARM.pubxml
cp ../DataCollection/*.json "HorseIsleServer/bin/ARM/Linux/net5.0/linux-arm/publish/"
cp ../DataCollection/*.MAP "HorseIsleServer/bin/ARM/Linux/net5.0/linux-arm/publish/"
- name: Build linux-arm64
continue-on-error: true
run: dotnet publish -p:PublishProfile=LinuxARM64.pubxml
continue-on-error: false
run: |
dotnet publish -p:PublishProfile=LinuxARM64.pubxml
cp ../DataCollection/*.json "HorseIsleServer/bin/ARM64/Linux/net5.0/linux-arm64/publish/"
cp ../DataCollection/*.MAP "HorseIsleServer/bin/ARM64/Linux/net5.0/linux-arm64/publish/"
- name: upload linux-64
uses: actions/upload-artifact@v2
with:
@ -67,17 +64,3 @@ jobs:
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\/

53
.github/workflows/windows.yml vendored Normal file
View file

@ -0,0 +1,53 @@
name: windows
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
defaults:
run:
working-directory: ./Horse Isle Server
jobs:
build:
runs-on: windows-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-x64
continue-on-error: false
run: |
dotnet publish -p:PublishProfile=Win64.pubxml
copy ../DataCollection/gamedata.json "HorseIsleServer/bin/x64/Windows/net5.0/win-x64/publish/gamedata.json"
copy ../DataCollection/HI1.MAP "HorseIsleServer/bin/x64/Windows/net5.0/win-x64/publish/HI1.MAP"
- name: Build win-x86
continue-on-error: false
run: |
dotnet publish -p:PublishProfile=Win32.pubxml
copy ../DataCollection/gamedata.json "HorseIsleServer/bin/x86/Windows/net5.0/win-x86/publish/gamedata.json"
copy ../DataCollection/HI1.MAP "HorseIsleServer/bin/x86/Windows/net5.0/win-x86/publish/HI1.MAP"
- name: upload win-x64
uses: actions/upload-artifact@v2
with:
name: win-x64
path: Horse Isle Server\HorseIsleServer\bin/x64\Windows\net5.0\win-x64\publish\
- name: upload win-x86
uses: actions/upload-artifact@v2
with:
name: win-x86
path: Horse Isle Server\HorseIsleServer\bin\x86\Windows\net5.0\win-x86\publish\

View file

@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Linux</Configuration>
<Platform>ARM64</Platform>
<PublishReadyToRunShowWarnings>True</PublishReadyToRunShowWarnings>
<PublishDir>bin\ARM64\Linux\net5.0\linux-arm64\publish\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net5.0</TargetFramework>
<RuntimeIdentifier>linux-arm64</RuntimeIdentifier>
@ -15,4 +15,4 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PublishReadyToRun>True</PublishReadyToRun>
<PublishTrimmed>True</PublishTrimmed>
</PropertyGroup>
</Project>
</Project>

View file

@ -1,5 +1,8 @@
# HISP - Horse Isle Server Protocal.
[![Linux](https://github.com/KuromeSan/HISP/workflows/linux/badge.svg)](https://github.com/KuromeSan/HISP/actions?query=workflow%3Alinux)
[![Windows](https://github.com/KuromeSan/HISP/workflows/windows/badge.svg)](https://github.com/KuromeSan/HISP/actions?query=workflow%3Awindows)
This is a horse isle server that is massively still in development
it has a few features implemented, none of the actural 'horse' part yet thou.