Skip to content

Commit ea6167c

Browse files
authored
separate windows & linux workflows (#63)
1 parent bf0ced3 commit ea6167c

File tree

2 files changed

+24
-13
lines changed

2 files changed

+24
-13
lines changed

.github/workflows/ci.yml renamed to .github/workflows/ci-linux.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: CI Linux
22

33
on:
44
push:
@@ -12,16 +12,6 @@ on:
1212
workflow_dispatch:
1313

1414
jobs:
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-
2515
build-linux:
2616
name: Build, Test & Pack (Linux)
2717
runs-on: ubuntu-24.04
@@ -76,7 +66,7 @@ jobs:
7666

7767
github:
7868
name: Deploy to GitHub
79-
needs: [build-windows, build-linux]
69+
needs: [build-linux]
8070
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
8171
runs-on: ubuntu-24.04
8272
steps:
@@ -89,7 +79,7 @@ jobs:
8979

9080
nuget:
9181
name: Deploy to NuGet
92-
needs: [build-windows, build-linux]
82+
needs: [build-linux]
9383
if: startsWith(github.ref, 'refs/tags/v')
9484
runs-on: ubuntu-24.04
9585
steps:

.github/workflows/ci-windows.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI Windows
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
pull_request:
8+
branches:
9+
- "main"
10+
workflow_dispatch:
11+
12+
jobs:
13+
build-windows:
14+
name: Build & Test (Windows)
15+
runs-on: windows-2022
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Run tests
21+
run: dotnet test -c Release -p:CollectCoverage=false

0 commit comments

Comments
 (0)