From 474d037131381f79f0a7f1f33bedc32669db025b Mon Sep 17 00:00:00 2001 From: "phnx47[bot]" <78849906+phnx47-bot@users.noreply.github.com> Date: Tue, 10 Dec 2024 16:17:28 +0000 Subject: [PATCH] separate windows & linux workflows --- .github/workflows/{ci.yml => ci-linux.yml} | 16 +++------------- .github/workflows/ci-windows.yml | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 13 deletions(-) rename .github/workflows/{ci.yml => ci-linux.yml} (89%) create mode 100644 .github/workflows/ci-windows.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci-linux.yml similarity index 89% rename from .github/workflows/ci.yml rename to .github/workflows/ci-linux.yml index 5e9d940..92c7641 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci-linux.yml @@ -1,4 +1,4 @@ -name: CI +name: CI Linux on: push: @@ -12,16 +12,6 @@ on: workflow_dispatch: jobs: - build-windows: - name: Build & Test (Windows) - runs-on: windows-2022 - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Run tests - run: dotnet test -c Release -p:CollectCoverage=false - build-linux: name: Build, Test & Pack (Linux) runs-on: ubuntu-24.04 @@ -76,7 +66,7 @@ jobs: github: name: Deploy to GitHub - needs: [build-windows, build-linux] + needs: [build-linux] if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-24.04 steps: @@ -89,7 +79,7 @@ jobs: nuget: name: Deploy to NuGet - needs: [build-windows, build-linux] + needs: [build-linux] if: startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-24.04 steps: diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml new file mode 100644 index 0000000..6a7686d --- /dev/null +++ b/.github/workflows/ci-windows.yml @@ -0,0 +1,21 @@ +name: CI Windows + +on: + push: + branches: + - "main" + pull_request: + branches: + - "main" + workflow_dispatch: + +jobs: + build-windows: + name: Build & Test (Windows) + runs-on: windows-2022 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run tests + run: dotnet test -c Release -p:CollectCoverage=false