Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .build/azure-templates/run-tests-on-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,31 @@ steps:
& $installScriptPath -Version $sdkVersion -Architecture $architecture -InstallDir $installPath
Write-Host "##vso[task.setvariable variable=DOTNET_ROOT_X86;]$installPath"
displayName: 'Use .NET SDK ${{ parameters.dotNetSdkVersion }} (x86)'
condition: and(succeeded(), contains('${{ parameters.framework }}', 'net10.'), eq('${{ parameters.vsTestPlatform }}', 'x86'))

- task: UseDotNet@2
displayName: 'Use .NET SDK 9.0.308'
inputs:
packageType: 'sdk'
version: '9.0.308'
performMultiLevelLookup: '${{ variables.PerformMultiLevelLookup }}'
condition: and(succeeded(), contains('${{ parameters.framework }}', 'net8.'))

# Hack: .NET 8+ no longer installs the x86 bits and they must be installed separately. However, it is not
# trivial to get it into the path and to get it to pass the minimum SDK version check in runbuild.ps1.
# So, we install it afterward and set the environment variable so the above SDK can delegate to it.
# This code only works on Windows.
- pwsh: |
$sdkVersion = '9.0.308'
$architecture = '${{ parameters.vsTestPlatform }}'
$installScriptPath = "${env:AGENT_TEMPDIRECTORY}/dotnet-install.ps1"
$installScriptUrl = "https://raw.githubusercontent.com/dotnet/install-scripts/main/src/dotnet-install.ps1"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest $installScriptUrl -OutFile $installScriptPath -TimeoutSec 60
$installPath = "${env:ProgramFiles(x86)}/dotnet"
& $installScriptPath -Version $sdkVersion -Architecture $architecture -InstallDir $installPath
Write-Host "##vso[task.setvariable variable=DOTNET_ROOT_X86;]$installPath"
displayName: 'Use .NET SDK 9.0.308 (x86)'
condition: and(succeeded(), contains('${{ parameters.framework }}', 'net9.'), eq('${{ parameters.vsTestPlatform }}', 'x86'))

- task: UseDotNet@2
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/Generate-TestWorkflows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,16 @@ param(

[string]$RepoRoot = (Split-Path (Split-Path $PSScriptRoot)),

[string[]]$TestFrameworks = @('net9.0','net8.0','net472','net48'), # targets under test: net8.0, net8.0, netstandard2.0, net462
[string[]]$TestFrameworks = @('net10.0', 'net9.0','net8.0','net472','net48'), # targets under test: net10.0, net8.0, net8.0, netstandard2.0, net462

[string[]]$OperatingSystems = @('windows-latest', 'ubuntu-latest'),

[string[]]$TestPlatforms = @('x64'),

[string[]]$Configurations = @('Release'),

[string]$DotNet10SDKVersion = '10.0.x',

[string]$DotNet9SDKVersion = '9.0.x',

[string]$DotNet8SDKVersion = '8.0.x'
Expand Down Expand Up @@ -155,6 +157,7 @@ function Write-TestWorkflow(
[string[]]$TestFrameworks = @('net6.0', 'net48'),
[string[]]$TestPlatforms = @('x64'),
[string[]]$OperatingSystems = @('windows-latest', 'ubuntu-latest', 'macos-latest'),
[string]$DotNet10SDKVersion = $DotNet10SDKVersion,
[string]$DotNet9SDKVersion = $DotNet9SDKVersion,
[string]$DotNet8SDKVersion = $DotNet8SDKVersion) {

Expand Down Expand Up @@ -284,6 +287,12 @@ jobs:
uses: actions/setup-dotnet@v5
with:
dotnet-version: '$DotNet9SDKVersion'
if: `${{ startswith(matrix.framework, 'net9.') }}

- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '$DotNet10SDKVersion'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/Lucene-Net-Tests-AllProjects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48, net472]
framework: [net10.0, net9.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -102,13 +102,19 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '9.0.x'
if: ${{ startswith(matrix.framework, 'net9.') }}

- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/Lucene-Net-Tests-Analysis-Common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48, net472]
framework: [net10.0, net9.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -86,13 +86,19 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '9.0.x'
if: ${{ startswith(matrix.framework, 'net9.') }}

- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48, net472]
framework: [net10.0, net9.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -83,13 +83,19 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '9.0.x'
if: ${{ startswith(matrix.framework, 'net9.') }}

- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48, net472]
framework: [net10.0, net9.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -83,13 +83,19 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '9.0.x'
if: ${{ startswith(matrix.framework, 'net9.') }}

- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48]
framework: [net10.0, net9.0, net8.0, net48]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -86,13 +86,19 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '9.0.x'
if: ${{ startswith(matrix.framework, 'net9.') }}

- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48, net472]
framework: [net10.0, net9.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -80,13 +80,19 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '9.0.x'
if: ${{ startswith(matrix.framework, 'net9.') }}

- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ on:
- 'src/Lucene.Net.Tests.Analysis.SmartCn/Directory.Build.*'
- 'src/Directory.Build.*'
- 'Directory.Build.*'
- 'src/Lucene.Net.Tests.Analysis.SmartCn/**/*.zip'

# Dependencies
- 'src/Lucene.Net/**/*'
Expand All @@ -55,7 +56,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48, net472]
framework: [net10.0, net9.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -84,13 +85,19 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '9.0.x'
if: ${{ startswith(matrix.framework, 'net9.') }}

- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48, net472]
framework: [net10.0, net9.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -81,13 +81,19 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '9.0.x'
if: ${{ startswith(matrix.framework, 'net9.') }}

- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/Lucene-Net-Tests-Benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48, net472]
framework: [net10.0, net9.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -93,13 +93,19 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '9.0.x'
if: ${{ startswith(matrix.framework, 'net9.') }}

- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/Lucene-Net-Tests-Classification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48, net472]
framework: [net10.0, net9.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -81,13 +81,19 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '9.0.x'
if: ${{ startswith(matrix.framework, 'net9.') }}

- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
Loading
Loading