From 5e8df12b70afea4cc77f389fada42a9cfdf98c73 Mon Sep 17 00:00:00 2001 From: Nomads_Reach <144523850+NomadsReach@users.noreply.github.com> Date: Sun, 16 Aug 2026 02:58:42 -0400 Subject: [PATCH] Run runtime policy first on self-hosted gate --- .github/workflows/csharp-server.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/csharp-server.yml b/.github/workflows/csharp-server.yml index 4a9222d..63d3261 100644 --- a/.github/workflows/csharp-server.yml +++ b/.github/workflows/csharp-server.yml @@ -6,20 +6,15 @@ on: workflow_dispatch: jobs: - runtime-policy: - name: Repository runtime policy - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Enforce runtime policy - run: bash server/scripts/verify-no-legacy-runtime.sh - build-and-test: - name: C# build and test + name: Repository policy, C# build and test runs-on: [self-hosted, Linux, X64] steps: - uses: actions/checkout@v4 + - name: Enforce repository runtime policy + run: bash server/scripts/verify-no-legacy-runtime.sh + - uses: actions/setup-dotnet@v4 with: dotnet-version: "8.0.x" @@ -32,7 +27,7 @@ jobs: working-directory: server run: dotnet run --project tests/CommonwealthOnline.Server.Tests.csproj -c Release - - name: Check Linux scripts and repository policy + - name: Check Linux scripts working-directory: server run: | chmod +x start.sh fix-port.sh scripts/linux_compat_checks.sh scripts/verify-no-legacy-runtime.sh @@ -40,7 +35,7 @@ jobs: bash -n fix-port.sh bash -n scripts/linux_compat_checks.sh bash -n scripts/verify-no-legacy-runtime.sh - bash scripts/verify-no-legacy-runtime.sh + bash scripts/linux_compat_checks.sh - name: Publish Linux server working-directory: server