Skip to content

Commit 6d25812

Browse files
committed
Build on Ubuntu and Windows
1 parent 112a8a6 commit 6d25812

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ env:
1919
jobs:
2020
build:
2121
strategy:
22+
fail-fast: false
2223
matrix:
24+
os: [ ubuntu-24.04, windows-2022 ]
2325
configuration: [ 'Debug', 'Release' ]
2426

25-
runs-on: ubuntu-22.04
27+
runs-on: ${{ matrix.os }}
2628

2729
env:
2830
Configuration: ${{ matrix.configuration }}
@@ -45,12 +47,14 @@ jobs:
4547

4648
- name: test
4749
run: dotnet test --no-build --no-restore
50+
env:
51+
TestNetCoreOnly: ${{ contains(matrix.os, 'ubuntu') }}
4852

4953
- name: pack
5054
run: dotnet pack --no-build --no-restore -c ${{ matrix.configuration }} -o dist
5155

5256
- name: publish artifact
5357
uses: actions/upload-artifact@v4
5458
with:
55-
name: VbaCompression_${{ env.VersionSuffix }}_${{ matrix.configuration }}
59+
name: VbaCompression_${{ env.VersionSuffix }}_${{ matrix.configuration }}_${{ matrix.os }}
5660
path: '${{ github.workspace }}/dist'

src/Kavod.Vba.Compression.Tests/Kavod.Vba.Compression.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>net48;net8.0</TargetFrameworks>
5+
<TargetFrameworks Condition=" '$(TestNetCoreOnly)' == 'true' ">net8.0</TargetFrameworks>
56
<IsPackable>false</IsPackable>
67
</PropertyGroup>
78

0 commit comments

Comments
 (0)