Skip to content

Commit

Permalink
CI: Test with different dependency versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Jan 29, 2024
1 parent 4732c8d commit e86fba4
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
- os: macos-11.0
- os: ubuntu-latest
test-aot: true
- os: ubuntu-latest
SystemTextJsonVersion: 8.0.1
RecyclableMemoryStreamVersion: 3.0.0
- os: windows-latest
pack: true
docs: true
Expand Down Expand Up @@ -63,7 +66,11 @@ jobs:
dotnet clean ${{ env.CORE_SLN }} --configuration Release
dotnet nuget locals all --clear
if: github.event_name == 'release'
- name: Test with ${{ matrix.SystemTextJsonVersion }} and ${{ matrix.RecyclableMemoryStreamVersion }}
if: matrix.SystemTextJsonVersion != null && matrix.RecyclableMemoryStreamVersion != null
run: |
dotnet test ${{ env.CORE_SLN }} -p:SystemTextJsonVersion=${{ matrix.SystemTextJsonVersion }} -p:RecyclableMemoryStreamVersion=${{ matrix.RecyclableMemoryStreamVersion }} -c Release
- name: Install dependencies
run: dotnet restore ${{ env.CORE_SLN }} --force-evaluate
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<RestoreLockedMode>false</RestoreLockedMode>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<RootNamespace>Imageflow</RootNamespace>



<ImplicitUsings>enable</ImplicitUsings>
Expand Down
8 changes: 6 additions & 2 deletions src/Imageflow/Imageflow.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@
<IsAotCompatible Condition="'$(TargetFramework)' == 'net8.0'">true</IsAotCompatible>
<IsTrimmable Condition="'$(TargetFramework)' == 'net8.0'">true</IsTrimmable>
<PolySharpIncludeRuntimeSupportedAttributes>true</PolySharpIncludeRuntimeSupportedAttributes>
<RootNamespace>Imageflow</RootNamespace>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="[1.2.*,4)" />
<PackageReference Include="System.Text.Json" Version="[6.*,)" />

<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="$(RecyclableMemoryStreamVersion" Condition="'$(RecyclableMemoryStreamVersion)' != ''" />
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="[1.2.*,4)" Condition="'$(RecyclableMemoryStreamVersion)' == ''" />
<PackageReference Include="System.Text.Json" Version="[6.*,)" Condition="'$(SystemTextJsonVersion)' == ''" />
<PackageReference Include="System.Text.Json" Version="$(SystemTextJsonVersion)" Condition="'$(SystemTextJsonVersion)' != ''" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.*" PrivateAssets="All" />
Expand Down
88 changes: 88 additions & 0 deletions tests/Imageflow.TestDotNetFullPackageReference/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,94 @@
"System.Text.Json": "[6.*, )"
}
}
},
".NETFramework,Version=v4.7.2/win": {
"Imageflow.NativeRuntime.osx-x86_64": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "3wEglrMqVzlnAVBTdK6qcRySdo/4ajBP5ASRuK3yHfBqPp3ld4ke6guxuSZbgDTObIxai7KTLlsIvQZhusymUA=="
},
"Imageflow.NativeRuntime.ubuntu-x86_64": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "H8K5kZqcM3IliDRZD3H8BN6TbeLgcW+6FsDZ3EvlqBvu41s+Lv9vxE+c3m1cUQhsYBs76udUhgJFNR1D6x3U5g=="
},
"Imageflow.NativeRuntime.win-x86": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "WunIva5NZ2iMPKCyz8ZTkN7SRaW3szBijMg5YK7jaSFZHw8Xiky/GFfghc0XgWTuILxwO4YbY86e8QvW8CBigQ=="
},
"Imageflow.NativeRuntime.win-x86_64": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "1rY6C9Hjj7U9toa7FlnveiSBKccZlvCaHwdxPRQS0vDpAZZCJrTA/H7VYdreifpnIDInYcf0i/3oEKzEnj884w=="
}
},
".NETFramework,Version=v4.7.2/win-arm64": {
"Imageflow.NativeRuntime.osx-x86_64": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "3wEglrMqVzlnAVBTdK6qcRySdo/4ajBP5ASRuK3yHfBqPp3ld4ke6guxuSZbgDTObIxai7KTLlsIvQZhusymUA=="
},
"Imageflow.NativeRuntime.ubuntu-x86_64": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "H8K5kZqcM3IliDRZD3H8BN6TbeLgcW+6FsDZ3EvlqBvu41s+Lv9vxE+c3m1cUQhsYBs76udUhgJFNR1D6x3U5g=="
},
"Imageflow.NativeRuntime.win-x86": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "WunIva5NZ2iMPKCyz8ZTkN7SRaW3szBijMg5YK7jaSFZHw8Xiky/GFfghc0XgWTuILxwO4YbY86e8QvW8CBigQ=="
},
"Imageflow.NativeRuntime.win-x86_64": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "1rY6C9Hjj7U9toa7FlnveiSBKccZlvCaHwdxPRQS0vDpAZZCJrTA/H7VYdreifpnIDInYcf0i/3oEKzEnj884w=="
}
},
".NETFramework,Version=v4.7.2/win-x64": {
"Imageflow.NativeRuntime.osx-x86_64": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "3wEglrMqVzlnAVBTdK6qcRySdo/4ajBP5ASRuK3yHfBqPp3ld4ke6guxuSZbgDTObIxai7KTLlsIvQZhusymUA=="
},
"Imageflow.NativeRuntime.ubuntu-x86_64": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "H8K5kZqcM3IliDRZD3H8BN6TbeLgcW+6FsDZ3EvlqBvu41s+Lv9vxE+c3m1cUQhsYBs76udUhgJFNR1D6x3U5g=="
},
"Imageflow.NativeRuntime.win-x86": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "WunIva5NZ2iMPKCyz8ZTkN7SRaW3szBijMg5YK7jaSFZHw8Xiky/GFfghc0XgWTuILxwO4YbY86e8QvW8CBigQ=="
},
"Imageflow.NativeRuntime.win-x86_64": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "1rY6C9Hjj7U9toa7FlnveiSBKccZlvCaHwdxPRQS0vDpAZZCJrTA/H7VYdreifpnIDInYcf0i/3oEKzEnj884w=="
}
},
".NETFramework,Version=v4.7.2/win-x86": {
"Imageflow.NativeRuntime.osx-x86_64": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "3wEglrMqVzlnAVBTdK6qcRySdo/4ajBP5ASRuK3yHfBqPp3ld4ke6guxuSZbgDTObIxai7KTLlsIvQZhusymUA=="
},
"Imageflow.NativeRuntime.ubuntu-x86_64": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "H8K5kZqcM3IliDRZD3H8BN6TbeLgcW+6FsDZ3EvlqBvu41s+Lv9vxE+c3m1cUQhsYBs76udUhgJFNR1D6x3U5g=="
},
"Imageflow.NativeRuntime.win-x86": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "WunIva5NZ2iMPKCyz8ZTkN7SRaW3szBijMg5YK7jaSFZHw8Xiky/GFfghc0XgWTuILxwO4YbY86e8QvW8CBigQ=="
},
"Imageflow.NativeRuntime.win-x86_64": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "1rY6C9Hjj7U9toa7FlnveiSBKccZlvCaHwdxPRQS0vDpAZZCJrTA/H7VYdreifpnIDInYcf0i/3oEKzEnj884w=="
}
}
}
}

0 comments on commit e86fba4

Please sign in to comment.