diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..1e41fcb --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -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\/ + diff --git a/Horse Isle Server/HorseIsleServer/HorseIsleServer.csproj b/Horse Isle Server/HorseIsleServer/HorseIsleServer.csproj index ebdf95f..44bdec8 100755 --- a/Horse Isle Server/HorseIsleServer/HorseIsleServer.csproj +++ b/Horse Isle Server/HorseIsleServer/HorseIsleServer.csproj @@ -72,4 +72,9 @@ true ARM64 + + net5.0 + win-x86;win-x64;win-arm;win-arm64;linux-x64;linux-arm;linux-arm64 + true +