From 23afbabfae7d10bf8476f215cfae74be71c7a1f4 Mon Sep 17 00:00:00 2001 From: Mikhail Tyukin Date: Thu, 4 Dec 2025 19:50:22 -0500 Subject: [PATCH] Compile server for linux --- .github/workflows/dotnet-desktop.yml | 36 +++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 2daddd5..a1209bc 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -23,7 +23,7 @@ jobs: fetch-depth: 0 # Install the .NET Core workload - - name: Install .NET 9 + - name: Install .NET 10 uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x @@ -49,3 +49,37 @@ jobs: with: name: Server and Server selector path: ${{ github.workspace }}/out/ + serverOnly: + strategy: + matrix: + configuration: [Release] + + runs-on: linux-latest # For a list of available runner types, refer to + # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on + + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + fetch-depth: 0 + + # Install the .NET Core workload + - name: Install .NET 10 + uses: actions/setup-dotnet@v5 + with: + dotnet-version: 10.0.x + + - name: Restore packages + run: dotnet restore + + - name: Publish Server + run: dotnet publish EpinelPS + + - name: Copy to output + run: echo ${{ github.workspace }} && xcopy /s /e "${{ github.workspace }}\EpinelPS\bin\Release\net10.0\linux-x64\publish\" "${{ github.workspace }}\out\" + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: EpinelPS_linux_x64 + path: ${{ github.workspace }}/out/ \ No newline at end of file