Skip to content

Commit 211c97c

Browse files
committed
Refactor CI workflow to use a matrix strategy for builds and update Ubuntu version
1 parent 43d6ecc commit 211c97c

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,20 @@ concurrency:
1818
jobs:
1919
# Keep the Windows build separate so we still validate the .NET Framework target
2020
# and the packaging prerequisites that only exist on Windows runners.
21-
build-windows:
22-
name: Build (Windows)
23-
runs-on: windows-latest
21+
build:
22+
name: Build (${{ matrix.os }})
23+
runs-on: ${{ matrix.os }}
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
os: [ubuntu-latest, windows-latest]
2428

2529
steps:
2630
- name: Checkout
2731
uses: actions/checkout@v6
2832
with:
2933
fetch-depth: 0
34+
fetch-tags: true
3035
submodules: recursive
3136

3237
- name: Setup .NET SDKs
@@ -55,6 +60,7 @@ jobs:
5560
- name: Run GitVersion and patch assembly info
5661
id: gitversion
5762
shell: pwsh
63+
working-directory: ${{ github.workspace }}
5864
run: |
5965
$gitVersion = dotnet tool run dotnet-gitversion /output json /updateAssemblyInfo | ConvertFrom-Json
6066
dotnet tool run dotnet-gitversion ".\dependencies\NEventStore" /updateAssemblyInfo | Out-Null
@@ -68,7 +74,7 @@ jobs:
6874
# The matrix is therefore per target framework instead of per OS.
6975
test-modern-tfm-linux:
7076
name: Test (Linux, ${{ matrix.tfm }})
71-
runs-on: ubuntu-24.04
77+
runs-on: ubuntu-latest
7278
strategy:
7379
fail-fast: false
7480
matrix:
@@ -99,6 +105,8 @@ jobs:
99105
- name: Checkout
100106
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
101107
with:
108+
fetch-depth: 0
109+
fetch-tags: true
102110
submodules: recursive
103111

104112
- name: Setup .NET SDKs

0 commit comments

Comments
 (0)