From c1b309f8a557987d209504338ea9b46dfb15932d Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Thu, 28 Jan 2021 11:34:52 +0100 Subject: [PATCH 01/13] Create dotnet.yml --- .github/workflows/dotnet.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..f941950 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,31 @@ +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 + run: dotnet publish --no-restore -c Release -r linux-x64 --self-contained true + - name: upload result + uses: actions/upload-artifact@v2 + with: + name: result + path: Horse Isle Server/HorseIsleServer/bin/ From 12cb26ffc5291ab630f7f2b7ae333cb654858360 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Thu, 28 Jan 2021 11:35:57 +0100 Subject: [PATCH 02/13] Update dotnet.yml --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index f941950..b1ac5f7 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -23,7 +23,7 @@ jobs: - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet publish --no-restore -c Release -r linux-x64 --self-contained true + run: dotnet publish --no-restore -c Debug -r linux-x64 --self-contained true - name: upload result uses: actions/upload-artifact@v2 with: From 968edb2e3316cf5fbe175b48e01e4c0ec4ded216 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Thu, 28 Jan 2021 11:47:46 +0100 Subject: [PATCH 03/13] Update HorseIsleServer.csproj --- Horse Isle Server/HorseIsleServer/HorseIsleServer.csproj | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Horse Isle Server/HorseIsleServer/HorseIsleServer.csproj b/Horse Isle Server/HorseIsleServer/HorseIsleServer.csproj index c13a56f..efe15a8 100755 --- a/Horse Isle Server/HorseIsleServer/HorseIsleServer.csproj +++ b/Horse Isle Server/HorseIsleServer/HorseIsleServer.csproj @@ -75,4 +75,9 @@ true ARM64 + + net5.0 + win-x86;win-x64;win-arm;win-arm64;linux-x64;linux-arm;linux-arm64 + true + From 7c56f8a4b03f9d8d8aa5e0a94d74d74fc8b92d03 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Thu, 28 Jan 2021 11:48:02 +0100 Subject: [PATCH 04/13] Update dotnet.yml --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index b1ac5f7..4eec153 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -23,7 +23,7 @@ jobs: - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet publish --no-restore -c Debug -r linux-x64 --self-contained true + run: dotnet publish --no-restore -c All --self-contained true - name: upload result uses: actions/upload-artifact@v2 with: From 8ad43df651263a08c908d49f28cad1d25b9e0747 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Thu, 28 Jan 2021 11:49:12 +0100 Subject: [PATCH 05/13] Update HorseIsleServer.csproj --- Horse Isle Server/HorseIsleServer/HorseIsleServer.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Horse Isle Server/HorseIsleServer/HorseIsleServer.csproj b/Horse Isle Server/HorseIsleServer/HorseIsleServer.csproj index efe15a8..4a6d622 100755 --- a/Horse Isle Server/HorseIsleServer/HorseIsleServer.csproj +++ b/Horse Isle Server/HorseIsleServer/HorseIsleServer.csproj @@ -75,7 +75,7 @@ true ARM64 - + net5.0 win-x86;win-x64;win-arm;win-arm64;linux-x64;linux-arm;linux-arm64 true From a60fa300f0513a9bc66607652b090e3ae10c9fad Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Thu, 28 Jan 2021 11:50:53 +0100 Subject: [PATCH 06/13] Update dotnet.yml --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 4eec153..0438a35 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -23,7 +23,7 @@ jobs: - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet publish --no-restore -c All --self-contained true + run: dotnet publish --no-restore -c All -p:Platform="Any CPU" --self-contained true - name: upload result uses: actions/upload-artifact@v2 with: From cd47cf44f31efd9d00485e95477b7f08c9251be4 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Thu, 28 Jan 2021 12:11:48 +0100 Subject: [PATCH 07/13] Update dotnet.yml --- .github/workflows/dotnet.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 0438a35..5be7536 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -23,9 +23,9 @@ jobs: - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet publish --no-restore -c All -p:Platform="Any CPU" --self-contained true + run: dotnet publish -r linux-x64 --self-contained false - name: upload result uses: actions/upload-artifact@v2 with: name: result - path: Horse Isle Server/HorseIsleServer/bin/ + path: HorseIsleServer/bin/Debug/net5.0/linux-x64/publish/ From e34c4ae60a1a8dd41d39efadbc91ba21932ce20d Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Thu, 28 Jan 2021 12:13:04 +0100 Subject: [PATCH 08/13] ... --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 5be7536..9149bdd 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -28,4 +28,4 @@ jobs: uses: actions/upload-artifact@v2 with: name: result - path: HorseIsleServer/bin/Debug/net5.0/linux-x64/publish/ + path: Horse Isle Server/HorseIsleServer/bin/Debug/net5.0/linux-x64/publish/ From 2b2b1e04031cc377686192c778debacffe601933 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Thu, 28 Jan 2021 12:19:07 +0100 Subject: [PATCH 09/13] Update dotnet.yml --- .github/workflows/dotnet.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 9149bdd..f4854b9 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -16,16 +16,30 @@ jobs: 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 + + - name: Build linux-64 run: dotnet publish -r linux-x64 --self-contained false - - name: upload result + + - name: Build win-64 + run: dotnet publish -r win-x64 --self-contained false + + - name: upload linux-64 uses: actions/upload-artifact@v2 with: - name: result + name: linux-x64 path: Horse Isle Server/HorseIsleServer/bin/Debug/net5.0/linux-x64/publish/ + + - name: upload-win64 + uses: actions/upload-artifact@v2 + with: + name: win-64 + path: Horse Isle Server/HorseIsleServer/bin/Debug/net5.0/win-x64/publish/ + From 9d4b4c7d7b76eceb87d46ba55c9aef589e6bbb0a Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Thu, 28 Jan 2021 12:35:09 +0100 Subject: [PATCH 10/13] aaaa --- .github/workflows/dotnet.yml | 43 +++++++++++++++++++++++++++++++----- 1 file changed, 38 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index f4854b9..1022877 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -25,11 +25,25 @@ jobs: - name: Restore dependencies run: dotnet restore - - name: Build linux-64 - run: dotnet publish -r linux-x64 --self-contained false - + - name: Build win-64 - run: dotnet publish -r win-x64 --self-contained false + run: dotnet publish -p:PublishProfile=Win64.pubxml + + - name: Build win-32 + run: dotnet publish -p:PublishProfile=Win32.pubxml + + + - name: Build linux-64 + run: dotnet publish -p:PublishProfile=Linux64.pubxml + + - name: Build linux-arm + run: dotnet publish -p:PublishProfile=LinuxARM.pubxml + + - name: Build linux-arm64 + run: dotnet publish -p:PublishProfile=LinuxARM64.pubxml + + + - name: upload linux-64 uses: actions/upload-artifact@v2 @@ -37,9 +51,28 @@ jobs: name: linux-x64 path: Horse Isle Server/HorseIsleServer/bin/Debug/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/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/net5.0/linux-ARM64/publish/ + + - name: upload-win64 uses: actions/upload-artifact@v2 with: name: win-64 - path: Horse Isle Server/HorseIsleServer/bin/Debug/net5.0/win-x64/publish/ + 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\/ From 90afec12f5b027b9c8576907fd314b13f63f5172 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Thu, 28 Jan 2021 12:38:56 +0100 Subject: [PATCH 11/13] Update dotnet.yml --- .github/workflows/dotnet.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 1022877..9cf88ce 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -27,19 +27,24 @@ jobs: - 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 From 9de6c1eaae1549380825d3b137949be18063ec4c Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Thu, 28 Jan 2021 12:46:42 +0100 Subject: [PATCH 12/13] Update dotnet.yml --- .github/workflows/dotnet.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 9cf88ce..e635708 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -54,19 +54,19 @@ jobs: uses: actions/upload-artifact@v2 with: name: linux-x64 - path: Horse Isle Server/HorseIsleServer/bin/Debug/net5.0/linux-x64/publish/ + 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/net5.0/linux-ARM/publish/ + path: Horse Isle Server/HorseIsleServer/bin/ARM/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/net5.0/linux-ARM64/publish/ + path: Horse Isle Server/HorseIsleServer/bin/ARM64/net5.0/linux-arm64/publish/ - name: upload-win64 From 990aaf7aaa312bbe165e9b20cddebe51088cb0e4 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Thu, 28 Jan 2021 12:53:36 +0100 Subject: [PATCH 13/13] oops --- .github/workflows/dotnet.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index e635708..1e41fcb 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -60,13 +60,13 @@ jobs: uses: actions/upload-artifact@v2 with: name: linux-arm - path: Horse Isle Server/HorseIsleServer/bin/ARM/net5.0/linux-arm/publish/ + 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/net5.0/linux-arm64/publish/ + path: Horse Isle Server/HorseIsleServer/bin/ARM64/Linux/net5.0/linux-arm64/publish/ - name: upload-win64