Skip to content

Commit c05fd1d

Browse files
committed
ci: windows build
1 parent fbcea1a commit c05fd1d

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.github/settings.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ branches:
6868
required_pull_request_reviews: null
6969
required_status_checks:
7070
strict: false
71-
contexts: ['Build & Test']
71+
contexts: ['Build & Test (Windows)', 'Build, Test & Pack (Linux)']
7272
enforce_admins: false
7373
required_linear_history: false
7474
restrictions: null

.github/workflows/ci.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,18 @@ on:
1212
workflow_dispatch:
1313

1414
jobs:
15-
build:
16-
name: Build & Test
15+
build-windows:
16+
name: Build & Test (Windows)
17+
runs-on: windows-2022
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Run tests
23+
run: dotnet test -c Release -p:CollectCoverage=false
24+
25+
build-linux:
26+
name: Build, Test & Pack (Linux)
1727
runs-on: ubuntu-22.04
1828
steps:
1929
- name: Checkout
@@ -73,7 +83,7 @@ jobs:
7383

7484
github:
7585
name: Deploy to GitHub
76-
needs: [build]
86+
needs: [build-windows, build-linux]
7787
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
7888
runs-on: ubuntu-22.04
7989
steps:
@@ -86,7 +96,7 @@ jobs:
8696

8797
nuget:
8898
name: Deploy to NuGet
89-
needs: [build]
99+
needs: [build-windows, build-linux]
90100
if: startsWith(github.ref, 'refs/tags/v')
91101
runs-on: ubuntu-22.04
92102
steps:

0 commit comments

Comments
 (0)