Skip to content

Commit

Permalink
separate windows & linux workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
phnx47-bot committed Dec 10, 2024
1 parent 5cca925 commit 474d037
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/ci.yml → .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: CI Linux

on:
push:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 474d037

Please sign in to comment.