diff --git a/.github/workflows/dotnet.yml b/.github/workflows/linux.yml similarity index 55% rename from .github/workflows/dotnet.yml rename to .github/workflows/linux.yml index 1e41fcb..65c358f 100755 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/linux.yml @@ -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\/ - diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 0000000..d870e7d --- /dev/null +++ b/.github/workflows/windows.yml @@ -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\ diff --git a/Horse Isle Server/HorseIsleServer/Properties/PublishProfiles/LinuxARM64.pubxml b/Horse Isle Server/HorseIsleServer/Properties/PublishProfiles/LinuxARM64.pubxml index 97f6bce..1bedc71 100755 --- a/Horse Isle Server/HorseIsleServer/Properties/PublishProfiles/LinuxARM64.pubxml +++ b/Horse Isle Server/HorseIsleServer/Properties/PublishProfiles/LinuxARM64.pubxml @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Linux ARM64 - True + bin\ARM64\Linux\net5.0\linux-arm64\publish\ FileSystem net5.0 linux-arm64 @@ -15,4 +15,4 @@ https://go.microsoft.com/fwlink/?LinkID=208121. True True - \ No newline at end of file + diff --git a/README.md b/README.md index 9a681fa..d797671 100755 --- a/README.md +++ b/README.md @@ -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.