From 442656b482ea58ee765d44fac43d3a117aea53b6 Mon Sep 17 00:00:00 2001 From: "phnx47[bot]" <78849906+phnx47-bot@users.noreply.github.com> Date: Sat, 15 Jun 2024 10:09:08 +0000 Subject: [PATCH] ci: windows build --- .github/settings.yml | 2 +- .github/workflows/ci.yml | 18 ++++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/settings.yml b/.github/settings.yml index df66fd0..6375803 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -68,7 +68,7 @@ branches: required_pull_request_reviews: null required_status_checks: strict: false - contexts: ['Build & Test'] + contexts: ['Build & Test (Windows)', 'Build, Test & Pack (Linux)'] enforce_admins: false required_linear_history: false restrictions: null diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c331d03..3621017 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,8 +12,18 @@ on: workflow_dispatch: jobs: - build: - name: Build & Test + 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-22.04 steps: - name: Checkout @@ -73,7 +83,7 @@ jobs: github: name: Deploy to GitHub - needs: [build] + needs: [build-windows, build-linux] if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-22.04 steps: @@ -86,7 +96,7 @@ jobs: nuget: name: Deploy to NuGet - needs: [build] + needs: [build-windows, build-linux] if: startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-22.04 steps: