From 61c5e7823ace6fccdcbcb1a26be0ccb77ea2ec3d Mon Sep 17 00:00:00 2001 From: OfficeCom Codex Date: Fri, 17 Jul 2026 02:03:43 +0200 Subject: [PATCH] Split Linux validation and Windows release build --- .gitea/workflows/client-build.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/client-build.yml b/.gitea/workflows/client-build.yml index ff7eb0a..b4a26df 100644 --- a/.gitea/workflows/client-build.yml +++ b/.gitea/workflows/client-build.yml @@ -7,9 +7,35 @@ on: tags: - "v*" workflow_dispatch: + inputs: + build_windows: + description: "Build the Windows release package" + required: false + default: "false" jobs: - build-client: + validate-client: + runs-on: + - self-hosted + - ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: "10.0.x" + + - name: Restore client + run: dotnet restore ./src/OCSentinelCli/OCSentinelCli.csproj + + - name: Build client + run: dotnet build ./src/OCSentinelCli/OCSentinelCli.csproj -c Release --no-restore + + build-client-windows: + needs: validate-client + if: startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'workflow_dispatch' && inputs.build_windows == 'true') runs-on: - self-hosted - windows